Laravel php artisan make:auth command not defined

By Dillon Smart · · · 0 Comments

Laravel

Laravel 6.0 LTS came with a lot of changes to the framework, apart from moving the the new Semantic Versioning, Laravels famous php artisan make:auth command was dropped.

php artisan make:auth

Before the Laravel make:auth command would create all the Migrations, Models, Controllers and Routes needed to easily setup an authenticatable application in seconds.

However, with the release of Laravel 6.0, authentication support is now added with a Laravel UI package.

To setup your application with authentication as you did with Laravel 5.* the new laravel UI package needs to be installed with composer.

composer require laravel/ui
php artisan ui vue --auth 

Running these commands will install the UI package and setup your authentication scaffold as it did before.

To utilise vue, you will need to run the application in dev mode. However, first you will need to install all the node modules:

npm install && npm run dev

I hope this helps those who got the same surprise as me when installing Larave 6.0 and running the Laravel make:auth command.

LaravelPHP

0 Comment

Was this helpful? Leave a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

[UPDATED 2022] Change PHP version on Ubuntu, Linux

Updated 23rd August 2022

In this post, I will show you how to switch PHP version on Ubuntu, Linux. If you are developing on Windows, follow this guide to set up Windows Sub System for Linux. What will be covered: Change PHP version for Apache2 Change PHP version for Nginx Change PHP CLI version In this example, we will

What is PHP?

Updated 1st August 2022

PHP (PHP: Hypertext Preprocessor) is an open-source, general-purpose, and server-side scripting language widely used in web development. PHP is used to manage databases, dynamic content, session tracking, and much more. Let’s answer the question “What is PHP?”. What is PHP used for? Since its first release in 1995, PHP has been seen used in many

PHP Variable Variables

Updated 1st June 2022

In PHP, it is sometimes necessary to have variables that have variable names. Traditionally, a variable is given a name and a value is given to the variable like so: $foo = 'bar'; A Variable Variable, or Double Dollar Variable, gets its name from the value of another variable like so: $foo = 'bar'; $$foo