<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: MUHAMMAD Roman Ali</title>
    <description>The latest articles on DEV Community by MUHAMMAD Roman Ali (@roman_web_dev).</description>
    <link>https://dev.to/roman_web_dev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4211092%2F132fe436-cde4-455d-9b7a-30060c793176.jpg</url>
      <title>DEV Community: MUHAMMAD Roman Ali</title>
      <link>https://dev.to/roman_web_dev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/roman_web_dev"/>
    <language>en</language>
    <item>
      <title>Laravel Images Not Showing on cPanel? Fix It in 2 Minutes</title>
      <dc:creator>MUHAMMAD Roman Ali</dc:creator>
      <pubDate>Tue, 27 Oct 2026 14:46:00 +0000</pubDate>
      <link>https://dev.to/roman_web_dev/laravel-images-not-showing-on-cpanel-fix-it-in-2-minutes-4je</link>
      <guid>https://dev.to/roman_web_dev/laravel-images-not-showing-on-cpanel-fix-it-in-2-minutes-4je</guid>
      <description>&lt;p&gt;You uploaded your Laravel project to cPanel. Everything works, but the uploaded images don't show. You only see broken image icons.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why it happens
&lt;/h2&gt;

&lt;p&gt;Laravel saves uploaded files in &lt;code&gt;storage/app/public&lt;/code&gt;. Browsers can only see them through a link called &lt;code&gt;public/storage&lt;/code&gt;. That link doesn't upload with your files, so it doesn't exist on the server.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 1: With Terminal
&lt;/h2&gt;

&lt;p&gt;Open &lt;strong&gt;Terminal&lt;/strong&gt; in cPanel and run:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cd ~/your-project
php artisan storage:link
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Refresh your site. Images should now load.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix 2: Without Terminal
&lt;/h2&gt;

&lt;p&gt;Add this route to &lt;code&gt;routes/web.php&lt;/code&gt;:&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::get('/make-link', function () {
    Illuminate\Support\Facades\Artisan::call('storage:link');
    return 'Done';
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;Open &lt;code&gt;yourdomain.com/make-link&lt;/code&gt; once. Then &lt;strong&gt;delete the route&lt;/strong&gt; so nobody else can use it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Still not working?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Check that &lt;code&gt;APP_URL&lt;/code&gt; in &lt;code&gt;.env&lt;/code&gt; is your real domain, like &lt;code&gt;https://yourdomain.com&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Some hosts block links. Ask support to allow symlinks.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Need help with your Laravel project on cPanel? I fix deployment issues here: &lt;a href="https://www.fiverr.com/s/YLLm23N" rel="noopener noreferrer"&gt;https://www.fiverr.com/s/YLLm23N&lt;/a&gt;&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>laravel</category>
      <category>webdev</category>
      <category>php</category>
    </item>
  </channel>
</rss>
