<?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>Forem: webfuelcode</title>
    <description>The latest articles on Forem by webfuelcode (@webfuelcode).</description>
    <link>https://forem.com/webfuelcode</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F436827%2Fc12d5ffb-1749-4759-9571-d00731218fdf.jpg</url>
      <title>Forem: webfuelcode</title>
      <link>https://forem.com/webfuelcode</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/webfuelcode"/>
    <language>en</language>
    <item>
      <title>Like and Unlike Button with Alpine: Laravel</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Wed, 13 Nov 2024 06:16:08 +0000</pubDate>
      <link>https://forem.com/webfuelcode/like-and-unlike-button-with-alpine-laravel-2o6c</link>
      <guid>https://forem.com/webfuelcode/like-and-unlike-button-with-alpine-laravel-2o6c</guid>
      <description>&lt;p&gt;Like and dislike buttons can be added to the Laravel project in a variety of ways. You can also use a simple form &lt;/p&gt; to refresh the website, although this may not feel professional for some.

&lt;p&gt;So we use JavaScript to create quick buttons similar to those found on Facebook and YouTube.&lt;/p&gt;

&lt;p&gt;When using Laravel, we have several ways for accessing such functions. You can always get JS, but Laravel already includes a short version framework that allows you to avoid the JS setup with Laravel.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Livewire:&lt;/strong&gt; full stack framework, that do all the JS functions in Laravel. Good for quick search, action without refreshing the page.&lt;br&gt;
&lt;strong&gt;Alpine:&lt;/strong&gt; Another one framework lighter than Livewire. But not always suitable for your heavy tasks. But does a lot for light or short projects.&lt;/p&gt;
&lt;h2&gt;
  
  
  How to get like and dislike button in Laravel with Alpine?
&lt;/h2&gt;

&lt;p&gt;You have Laravel and installed breeze with below commands, will give you alpine installed.&lt;/p&gt;

&lt;p&gt;While Laravel itself doesn't directly include AlpineJS, Laravel Breeze, a popular authentication scaffolding package, does integrate AlpineJS by default. This allows you to quickly create interactive user interfaces without the need for a full-fledged JavaScript framework like Vue or React.&lt;br&gt;
&lt;br&gt;
   &lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project laravel/laravel like-app

cd like-app

composer require laravel/breeze --dev

php artisan breeze:install

php artisan migrate
npm install
npm run dev
&lt;/code&gt;&lt;/pre&gt;


&lt;p&gt;The you will need to build the relationship between models. Like here we are going to set like by logged in users and they can remove it (no dislike button).&lt;/p&gt;

&lt;p&gt;Another point is that you can use this to keep any kind of post. As we are here showinf you the blog like task but the same table (likes) can keep others too. Becasu the structre is:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Schema::create('likes', function (Blueprint $table) {
            $table-&amp;gt;id();
            $table-&amp;gt;unsignedBigInteger('user_id'); // User who liked the item
            $table-&amp;gt;morphs('likeable'); // Creates likeable_id and likeable_type

            // Foreign key constraint for user_id
            $table-&amp;gt;foreign('user_id')-&amp;gt;references('id')-&amp;gt;on('users')-&amp;gt;onDelete('cascade');

            // Unique constraint to ensure a user can like an item only once
            $table-&amp;gt;unique(['user_id', 'likeable_id', 'likeable_type']);
            $table-&amp;gt;timestamps();
        });
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlt42aj8c7ompsfnfp54.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmlt42aj8c7ompsfnfp54.png" alt="Image description" width="800" height="86"&gt;&lt;/a&gt;&lt;br&gt;
The column 'likeable_type' will manage all similar ids to store.&lt;/p&gt;

&lt;p&gt;So if the blog id (1), post id (1), or offer id (1). No matter the like table will save all, so you do not need to create different tables to keep the likes.&lt;/p&gt;
&lt;h2&gt;
  
  
  Set the relationship between models
&lt;/h2&gt;

&lt;p&gt;In blog model (blog.php) put this:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function likes()
    {
        return $this-&amp;gt;morphMany(Like::class, 'likeable');
    }
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;We will keep the record of user like and gonna check if they already liked it or not, so the action will depend on their previous act. In user model (user.php) put this:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function likes()
    {
        return $this-&amp;gt;hasMany(Like::class);
    }

    public function hasLiked($blog)
    {
        return $this-&amp;gt;likes()-&amp;gt;where('likeable_id', $blog-&amp;gt;id)
                            -&amp;gt;where('likeable_type', Blog::class)
                            -&amp;gt;exists();
    }
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;One more model is like model (like.php):&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function likeable()
    {
        return $this-&amp;gt;morphTo();
    }
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;The blog.blade.php will have a button to show like and count. Put this code where ever you wanna show the likes.&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div x-data="{ liked: {{ json_encode(auth()-&amp;gt;user()-&amp;gt;hasLiked($blog)) }}, likesCount: {{ $blog-&amp;gt;likes-&amp;gt;count() }} }"&amp;gt;
                                                &amp;lt;button
                                                    @click="
                                                        fetch('{{ route('blogs.toggleLike', $blog-&amp;gt;slug) }}', {
                                                            method: 'POST',
                                                            headers: {
                                                                'X-CSRF-TOKEN': '{{ csrf_token() }}',
                                                                'Content-Type': 'application/json'
                                                            },
                                                            body: JSON.stringify({})
                                                        })
                                                        .then(response =&amp;gt; response.json())
                                                        .then(data =&amp;gt; {
                                                            liked = data.liked;
                                                            likesCount = data.likesCount;
                                                        });
                                                    "
                                                    :class="{ 'text-blue-500': liked }"
                                                &amp;gt;
                                                    &amp;lt;span x-text="liked ? 'Unlike' : 'Like'"&amp;gt;&amp;lt;/span&amp;gt;
                                                &amp;lt;/button&amp;gt;
                                                &amp;lt;span x-text="likesCount"&amp;gt;&amp;lt;/span&amp;gt; likes
                                            &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Now add function to handle like action this will check if the user has already like it or not. Here I have set the blog to open with slug not the id. For that I have used &lt;a href="https://github.com/cviebrock/eloquent-sluggable" rel="noopener noreferrer"&gt;eloquent-sluggable by cviebrock&lt;/a&gt;. BlogController.php:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function show(Blog $blog)
    {
        return view('show.blog', compact('blog'));
    }

public function toggleLike(Blog $blog)
    {
        $user = Auth::user();

        if ($user-&amp;gt;hasLiked($blog)) {
            $blog-&amp;gt;likes()-&amp;gt;where('user_id', $user-&amp;gt;id)-&amp;gt;delete();
            $liked = false;
        } else {
            $blog-&amp;gt;likes()-&amp;gt;create(['user_id' =&amp;gt; $user-&amp;gt;id]);
            $liked = true;
        }

        return response()-&amp;gt;json([
            'liked' =&amp;gt; $liked,
            'likesCount' =&amp;gt; $blog-&amp;gt;likes()-&amp;gt;count()
        ]);
    }
&lt;/code&gt;&lt;/pre&gt;



&lt;p&gt;Now the route, web.php:&lt;br&gt;
&lt;/p&gt;

&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::post('/blog/{blog}/like', [BlogController::class, 'toggleLike'])-&amp;gt;name('blogs.toggleLike');
&lt;/code&gt;&lt;/pre&gt;



</description>
      <category>laravel</category>
      <category>alpinejs</category>
      <category>breeze</category>
    </item>
    <item>
      <title>Can You Really Host Laravel on Shared Hosting?</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Thu, 03 Oct 2024 11:27:30 +0000</pubDate>
      <link>https://forem.com/webfuelcode/can-you-really-host-laravel-on-shared-hosting-1l7e</link>
      <guid>https://forem.com/webfuelcode/can-you-really-host-laravel-on-shared-hosting-1l7e</guid>
      <description>&lt;p&gt;Laravel 11 introduces numerous updates, and I opted to utilize Tailwind CSS due to its readily available theme upon installation.&lt;/p&gt;

&lt;p&gt;Code-ready setups are generally preferable. However, utilizing older versions of Bootstrap can present challenges if project requirements are not carefully considered. For instance, the &lt;code&gt;order-md-1&lt;/code&gt; class, which does not function in older versions, has been a frequent source of error in my experience. &lt;/p&gt;

&lt;p&gt;Tailwind CSS was selected due to its comprehensive functionality compared to Bootstrap, eliminating the need for additional JavaScript libraries.  This feature set was a primary motivator for exploring Tailwind CSS once.&lt;/p&gt;

&lt;p&gt;It is a separate matter that the production file must be executed upon completion of all other tasks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Can you run a Laravel project on shared hosting?
&lt;/h2&gt;

&lt;p&gt;The simple answer is yes. I was curious about placing the tailwind production file if I go to host on a shared environment.&lt;/p&gt;

&lt;p&gt;In the previous version of Laravel and using Bootstrap, we just moved the file from the &lt;strong&gt;public&lt;/strong&gt; folder to the &lt;strong&gt;root&lt;/strong&gt; folder. Then update the paths in the &lt;strong&gt;index&lt;/strong&gt; file.&lt;/p&gt;

&lt;p&gt;And it is done.  In some instances, clearing the cache or adjusting the PHP version was necessary. In this particular case, switching to a different PHP version resolved the problem.&lt;/p&gt;

&lt;p&gt;The same thing still works but I was stuck on Tailwind CSS and the style was broken. So I tried different methods.&lt;/p&gt;

&lt;h2&gt;
  
  
  HTACCESS
&lt;/h2&gt;

&lt;p&gt;The solution is still the same. But this never worked for me on older versions and Bootstrap.&lt;/p&gt;

&lt;p&gt;But this time I had no option. Because the Tailwind does not work on Laravel 11, so I decided to keep all the files in their places and create &lt;strong&gt;.htaccess&lt;/strong&gt; file in the root.&lt;/p&gt;

&lt;p&gt;And all worked properly. This was the most simple task to start with Laravel.&lt;/p&gt;

&lt;h2&gt;
  
  
  Copy this
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/$1 [L]
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>laravel</category>
      <category>shared</category>
      <category>hosting</category>
    </item>
    <item>
      <title>How To Delete Old Image While Updating The Post</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Sat, 16 Dec 2023 06:06:18 +0000</pubDate>
      <link>https://forem.com/webfuelcode/how-to-delete-old-image-while-updating-the-post-4cn4</link>
      <guid>https://forem.com/webfuelcode/how-to-delete-old-image-while-updating-the-post-4cn4</guid>
      <description>&lt;p&gt;The Laravel project can go and run well without touching the older files. For this, you will use the simple update function and update with the new text entered by the user.&lt;/p&gt;

&lt;p&gt;The problem may occur when you grow and have thousands of images and files that are not in use.&lt;/p&gt;

&lt;p&gt;The site will take time to load and at this time we know the power of fast-loading websites and how it impacts user performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check if there is a file
&lt;/h2&gt;

&lt;p&gt;If there is already a file we will remove it and update it with a new one. Or we can just leave to keep the older if the post has one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;        if ($request-&amp;gt;hasFile('image')) {
            $oldfile = public_path('images/post_img/') . $post-&amp;gt;image;
            $filename = 'image' . '_' .time() . '.' . $request-&amp;gt;file('image')-&amp;gt;getClientOriginalExtension();
            if(File::exists($oldfile)){
                File::delete($oldfile);
            }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Full update function
&lt;/h2&gt;

&lt;p&gt;Complete the update function by validating the title, description, category id, and image field.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;use File;

public function update(Request $request, Post $post)
    {
        $validatedData = $this-&amp;gt;validate($request, [
            'title' =&amp;gt; 'required',
            'category_id' =&amp;gt; 'required',
            'description' =&amp;gt; 'required',
            'image' =&amp;gt; 'sometimes|mimes:jpeg,jpg,gif,png'
        ]);

        if ($request-&amp;gt;hasFile('image')) {
            $oldfile = public_path('images/post_img/') . $post-&amp;gt;image;
            $filename = 'image' . '_' .time() . '.' . $request-&amp;gt;file('image')-&amp;gt;getClientOriginalExtension();
            if(File::exists($oldfile)){
                File::delete($oldfile);
            }

            $request-&amp;gt;file('image')-&amp;gt;storeAs('post_img', $filename, 'public');

            $validatedData['image'] = $filename;
        }



        $post-&amp;gt;update($validatedData);

        return redirect()-&amp;gt;back()-&amp;gt;withMessage('Your updated post is ready now!');
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://codeweb.wall-spot.com/how-to-delete-old-file-while-uploading-new/" rel="noopener noreferrer"&gt;Post: How To Delete Old File While Uploading New&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>tutorial</category>
      <category>php</category>
    </item>
    <item>
      <title>Laravel filesystems storage path</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Wed, 09 Mar 2022 14:20:44 +0000</pubDate>
      <link>https://forem.com/webfuelcode/laravel-filesystems-storage-path-14nc</link>
      <guid>https://forem.com/webfuelcode/laravel-filesystems-storage-path-14nc</guid>
      <description>&lt;p&gt;I personally stuck on the point where I created projects and forgot to change the path from storage to public. Actually, I wanted to store the file(images) in the image folder that was created in the root.&lt;/p&gt;

&lt;p&gt;This is what we see in the filesystems.php file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'disks' =&amp;gt; [

        'local' =&amp;gt; [
            'driver' =&amp;gt; 'local',
            'root' =&amp;gt; storage_path('app'),
        ],

        'public' =&amp;gt; [
            'driver' =&amp;gt; 'local',
            'root' =&amp;gt; storage_path('img'),
            'url' =&amp;gt; env('APP_URL').'/img',
            'visibility' =&amp;gt; 'public',
        ],

        's3' =&amp;gt; [
            'driver' =&amp;gt; 's3',
            'key' =&amp;gt; env('AWS_ACCESS_KEY_ID'),
            'secret' =&amp;gt; env('AWS_SECRET_ACCESS_KEY'),
            'region' =&amp;gt; env('AWS_DEFAULT_REGION'),
            'bucket' =&amp;gt; env('AWS_BUCKET'),
            'url' =&amp;gt; env('AWS_URL'),
        ],

    ],
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Making your own way to stare the images. You can change the path by ...&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;'public' =&amp;gt; [
            'driver' =&amp;gt; 'local',
            'root' =&amp;gt; storage_path('img'),
            'url' =&amp;gt; env('APP_URL').'/img',
            'visibility' =&amp;gt; 'public',
        ],
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the 'root' =&amp;gt; storage_path('img), You can change it like these&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;base_path();    // '/var/www/mysite'
app_path();     // '/var/www/mysite/app'
storage_path(); // '/var/www/mysite/storage'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This post is just a help and it is available on StackOver: &lt;a href="https://stackoverflow.com/questions/14631436/laravel-base-path" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/14631436/laravel-base-path&lt;/a&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>storatge</category>
    </item>
    <item>
      <title>If Else Condition For URL In Laravel</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Fri, 28 May 2021 05:36:02 +0000</pubDate>
      <link>https://forem.com/webfuelcode/if-else-condition-for-url-in-laravel-1h4p</link>
      <guid>https://forem.com/webfuelcode/if-else-condition-for-url-in-laravel-1h4p</guid>
      <description>&lt;p&gt;It will add "active" class if the URL matches with "/coupon/all"&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;ul class="list-group"&amp;gt;
       &amp;lt;a href="{{route('link')}}" class="list-group-item {{ Request::is('/coupons/all') ? 'active' : '' }}"&amp;gt;Show all&amp;lt;/a&amp;gt;
&amp;lt;/ul&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another method with using laravel if else&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@if(Request::url() === 'your url')
//code
@endif
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>laravel</category>
      <category>condition</category>
    </item>
    <item>
      <title>Laravel Check, In Controller If The User Has Liked It</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Sat, 13 Mar 2021 15:04:37 +0000</pubDate>
      <link>https://forem.com/webfuelcode/check-if-the-user-has-liked-it-ahf</link>
      <guid>https://forem.com/webfuelcode/check-if-the-user-has-liked-it-ahf</guid>
      <description>&lt;p&gt;Laravel function to check if the user has already added(liked, followed...) the post.&lt;/p&gt;

&lt;p&gt;If he did, then remove otherwise add it.&lt;/p&gt;

&lt;p&gt;Here suppose post like and it is a pivot table. First, you check if the user has already liked the post and then the action will depend on it. If they liked, the same link will remove it otherwise it will add it to the database.&lt;br&gt;
&lt;a href="https://codeweb.wall-spot.com/check-if-the-user-has-liked-the-post-in-laravel-controller/" rel="noopener noreferrer"&gt;Check If The User Has Liked The Post In Laravel Controller&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;public function saveLike(Request $request)
    {
        $likecheck = Like::where(['user_id'=&amp;gt;Auth::id(),'thread_id'=&amp;gt;$request-&amp;gt;id])-&amp;gt;first();
        if($likecheck){
            Like::where(['user_id'=&amp;gt;Auth::id(),'thread_id'=&amp;gt;$request-&amp;gt;id])-&amp;gt;delete();
            return 'delete';
        }
        else{
            $like = new Like;
            $like-&amp;gt;user_id = Auth::id();
            $like-&amp;gt;thread_id = $request-&amp;gt;id;
            $like-&amp;gt;save();
        }
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>laravel</category>
    </item>
    <item>
      <title>How To Create Symlink For Laravel Website</title>
      <dc:creator>webfuelcode</dc:creator>
      <pubDate>Tue, 02 Mar 2021 05:26:07 +0000</pubDate>
      <link>https://forem.com/webfuelcode/how-to-create-symlink-for-laravel-website-ckm</link>
      <guid>https://forem.com/webfuelcode/how-to-create-symlink-for-laravel-website-ckm</guid>
      <description>&lt;p&gt;The process to create a symlink for laravel app in cPanel is simple.&lt;/p&gt;

&lt;p&gt;Just create a file and fill it, then run it. And you are done. You will see a storage folder in the public folder(wherever you like to create a symlink).&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Name the file whatever. Like here we call it "symlink.php"&lt;/li&gt;
&lt;li&gt;Now fill the file with these.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;?php
symlink('/home/.../classific.gopickhost.com/classific/storage/app/public', '/home/.../classific.gopickhost.com/storage');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run this file. Just call the file in your browser address bar.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Ex.&lt;/strong&gt; Call &lt;em&gt;gopickhost.com/symlink.php&lt;/em&gt; or &lt;em&gt;gopickhost.com/dirname/symlink.php&lt;/em&gt;&lt;/p&gt;

&lt;h6&gt;
  
  
  Suppose the "Classific" is the new subdomain and the folder. So, you will tell which folder should be created a copy(symlink). Make sure you have entered the correct path.
&lt;/h6&gt;

&lt;p&gt;Basically you are saying in this file.&lt;br&gt;
&lt;code&gt;symlink('from_folder', 'to_folder');&lt;/code&gt;&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>symlink</category>
      <category>cpanel</category>
    </item>
  </channel>
</rss>
