To solve this error just add Schema::defaultStringLength(191); inside the boot() of AppServiceProvider.php file.
Coding Notes Posts
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().
In this article, we will discuss splice() method for JavaScript array. Javascript array splice(): Syntax 1 array.splice(index); Example 1 Example 2 Syntax 2 array.splice(index, numberOfElements); Example Syntax 3 array.splice(index, numberOfElements, addItem1, addItem2,…, addItemN); Example 1 Example 2
In this article, we will discuss the 2 easiest ways of redirecting a user to another page/URL with javascript. window.location.replace(…) is better than window.location.href because window.location.replace(…) does not keep the originating page in the session history, meaning the user won’t get stuck in a never-ending back-button fiasco.