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.

Pixel Tracking in PHP

Updated 16th August 2022

When creating email campaigns, it’s important to know how many recipients actually opened your email. This information can help you determine if your efforts are working or if it’s time to change your strategy. Most mail champaign tools such as Mailchimp and SendInBlue use a technique called Pixel Tracking. In this post, you will learn

Laravel 419 page expired after login [SOLVED]

Updated 1st January 2024

Laravel is the most popular PHP framework, dominating the space since 2014, and the chosen framework by many new PHP developers. Many new developers run into the same errors when first using the framework, the most common being a 419 Page Expired error on a form post.  What is Cross-Site Request Forgery (CSRF)? Cross-site request

How to use Microsoft Graph API with Laravel

Updated 1st January 2024

Microsoft Graph is a gateway to data and intelligence within Microsoft 365. Microsoft Graph is great to build apps for organizations and consumers using the vast amount of data stored in Microsoft 365. In this post, we are going to integrate with Microsoft Graph API in Laravel to get all users assigned to your tenant.