Edit the Nginx configuration file for the site (not the server), replace the location ~ \.php$ block with following location ~ \.php$ { try_files $uri /index.php?$args; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; fastcgi_index index.php; include fastcgi_params; } …
Category: Laravel
TailwindCSS is a popular utility first CSS framework. In this article, we will go over how to install TailwindCSS on Laravel which is a PHP Framework. 1. Create a Laravel Project and Dependencies Installed Before heading …
This article takes your through step by step process of how to deploy your Laravel Application which connects to the SQL Server Database on Digital Ocean and we will be using Laravel Forge for this. Setup …
If you are looking to refresh or reload the new values from the database for a Model, you can do the following $model->refresh(); For example $user = User::find('242'); $user->active = 1; $user->save(); .. $user->refresh(); …
In Laravel if you are looking to run a single seeder class you can do so by running the following command php artisan db:seed --class=PostTableSeeder In the above command, class PostTableSeeder must exist inside Database/Seeders directory. …
This article goes in detailed on implementing Laravel CRUD Operations. Create, Read, Update and Delete are the very basic operations that almost every application has. Creating a basic CRUD Operations in laravel is very simple thing …
So, if you are working with Laravel Livewire and you have wire:click in your template which should call a function in the component. But it is not working, and you have tried everything. Here is what …
If you are working with Laravel Livewire, there might be instance when you want to refresh the data on the front end. Here is how you can do it You can add a listener to your …
In this article we will implement the Change password functionality over the basic Authentication that is provided by Laravel. Before diving into the steps, make sure you have Laravel Project setup along with Authentication ready. Alright, …
If you have the URL of PDF which is situated on some other domain. You can allow it to be downloaded via your laravel application with following code $pdf = file_get_contents('http://www.africau.edu/images/default/sample.pdf'); Storage::disk('local')->put('samplepdf.pdf', $pdf); return response()->download(storage_path().'/app/samplepdf.pdf')->deleteFileAfterSend(true); Get …