CRUD (Create, Read, Update, Delete) operations are essentials for learning laravel. In this article, we will learn CRUD operations step by step in laravel 8 from scratch. 1) Create Project in Laravel Create a project using the following command. It will create a project with name laravel-crud. You can replace…
Tag: <span>laravel</span>
To solve this error just add Schema::defaultStringLength(191); inside the boot() of AppServiceProvider.php file.
Laravel makes implementing authentication very simple. You might have noticed that the make:auth command is no longer exists in laravel 6. To implement authentication in laravel 6 the laravel/ui package is required. 1) Install the laravel/ui Package To install laravel/ui package via composer run the following command in your terminal inside…
CRUD (Create, Read, Update, Delete) operations are essentials for learning laravel. In this article, we will learn CRUD operations step by step in laravel 6 from scratch. 1) Create Project in Laravel Create a project using the following command. It will create a project with name laravel-crud. You can replace…
To get a raw SQL query from query builder in laravel, replace the closing ->get() with ->toSql() and print the result with dd().