Skip to main content

Posts

Showing posts from December, 2024

Laravel Auth Tutorial

 After creating your project with the composer in Laravel, mostly next step is to enable the authentication. It is very simple to enable the Laravel auth with PHP artisan command. The most simple commands to follow is as below Adding SQLite Database to Laravel  First of all, you have to add the database into the " .env"  file. The simplest database that you could use is the SQLite database with Laravel. You can create a simple SQLite file in the database folder and add the absolute path in the ".env" file.  >> touch database\database.sqlite The above command is for creating the database file. You may use create the file manually if you are using windows.  You can change the .env file like this.  DB_CONNECTION=sqlite DB_DATABASE=/Applications/MAMP/htdocs/rtest/database/database.sqlite Enable Auth Middleware  The Larvel Authentication documentation  explains it very well. According to that documentation, you need to use the Laravel Auth...