and thanks for taking your time.
I get a project from school , so i'm new on laravel and don't know really well the framework.
Here i'm, when i try to install laravel/ui by the command line, i get this message
Package manifest generated successfully.
78 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> #php artisan vendor:publish --tag=laravel-assets --ansi --force
No publishable resources for tag [laravel-assets].
Publishing complete. ```
And then when i trie to install bootstrap/ui or react/ui , the installation complete, but there is no ui when i "npm run dev" , i don't get any message, everything looks okay, but don't work.
Thanks again for taking your time !
What command did you use for installation?
You should install it with composer require laravel/ui
Then you can use it to generate ui with these commands:
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
Related
I downloaded a project from Github and followed the instruction to open it for login in. I have to use php artisan make:auth but there is an error, how can you help me?
That command is no longer available(Depends on the version ), use this:
composer require laravel/ui
php artisan ui vue --auth
php artisan migrate
source :
Laravel
This question already has answers here:
Php artisan make:auth command is not defined
(12 answers)
Closed 1 year ago.
I am trying to run this command in laravel 8.* but it's not working.
php artisan make:auth
I got error like
Command "make:auth" is not defined
Did you mean one of these?
make:test
make:request
make:migration
make:seeder
make:middleware
make:controller
make:provider
make:policy
make:event
make:console
make:job
make:listener
make:model
make:command
also I tried to solve with
composer require laravel/ui
php artisan ui vue --dev
php artisan ui vue --auth
I got this error
Your requirements could not be resolved to an installable set of packages.
first run this command composer require laravel/ui then run this command
php artisan ui vue --auth
please follow these laravel 8 guide lines you will get your solution
https://laravel.com/docs/8.x/authentication
also this is tutorial how to use auth in laravel 8
https://laravelarticle.com/laravel-8-authentication-tutorial
laravel jetstream for auth
https://dev.to/kingsconsult/laravel-8-auth-registration-and-login-32jl
laravel 8 you can write this command.its work for me.
php artisan ui:auth
=>php artisan make:auth ( which works for Laravel 5.8 and older versions )
If i remember correctly, make:auth has been removed since Laravel 6 and was extracted to Laravel ui.
Regarding the error when installing these two:
composer require laravel/ui
php artisan ui vue --auth
You must have a version conflict. Try to re-install it with: composer require laravel/ui "^3.0"
So I solve this issue
changes with app/Providers/AppServiceProvider.php
add
use Illuminate\Support\Facades\Schema;
.
.
.
.
.
.
public function boot()
{
Schema::defaultstringLength(191);
}
then using command as follows:
sudo apt-get install php-xml
then
composer require laravel/ui
php artisan ui:auth
php artisan optimize
php artisan serve
and It resolve my issue
my screenshot
Try to run the below composer command:
composer update
Or
composer install
And after that run the ui command
composer require laravel/ui
php artisan ui vue --auth
Then run:
npm install && npm run dev
I am learning laravel framework. I followed the installation steps. Now I am installing Bootstrap and Vue scaffolding. Referring to this link.
I have run the cmd composer require laravel/ui --dev. Followed I run the following commands as they said.
// Generate basic scaffolding...
php artisan ui vue
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui vue --auth
php artisan ui react --auth
php artisan ui vue --auth this command installs files/folders successfully. Later when I run php artisan ui react --auth this command asks
The [auth/login.blade.php] view already exists. Do you want to replace it? (yes/no) [no]:
Why this asks for multiple auth files? What should be the answer?
Please guide me. Thanks
When I run this command: php artisan make:auth
I get an error:
command "make:auth" is not defined.
I have a problem in command with php artisan make:auth. How can I create a login in laravel
In Laravel 6 auth command has been removed and authentication scaffolding has been moved as separate package named laravel/ui
Here you can read about Laravel 6 and laravel/ui and also here you can read about laravel/ui in laravel documentation
Laravel 6.0 has removed this command:php artisan make:auth
Update for Laravel 6: The command to implement Auth is as follows:
composer require laravel/ui
php artisan ui vue --auth
This command will install a layout view, registration and login views, as well as routes for all authentication end-points. A HomeController will also be generated
NOTE: If your login page only shows plain HTML. And CSS is not loading properly then run this two command:
npm install
npm run dev
I have installed the latest version of laravel 5.1.19.
I've tried running:
php artisan make:auth
But it's returning:
[InvalidArgumentException]
Command "make:auth" is not defined.
Did you mean one of these?
make:test
make:request
make:migration
make:seeder
make:middleware
make:controller
make:provider
make:policy
make:event
make:console
make:job
make:listener
make:model
make:command
Is this command no longer available?
I'm on a mac os x by the way.
Yes, that command is not available as the Auth feature comes default by the laravel/laravel package.
If you check the Illuminate/Auth/Console, which is the place of console commands for the auth package, you will only see that the only available command is auth:clear-resets
You can see from the commit that make:auth has been removed for a year.
Check your Laravel Version if your vesion similar to 6.0.*
then, follow these steps -
use this command composer require laravel/ui
php artisan ui vue --auth
npm install then npm run dev
this is use for latest laravel version 6.0.*
php artisan make:auth is not available in laravel 5.1
try to update your composer ( composer update ) and check in your file composer.json if
laravel 5.2
If any one needs make::auth in laravel 6.0,
php artisan make:auth is not available in laravel 6.0
try this
composer require laravel/ui
php artisan ui vue --auth