Laravel frontend scaffolding - php

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

Related

Prodblem during laravel/ui installation

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

Try to use a command to Install login page?

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

How to install vue js in laravel 8 without jetstream and Inertia?

I'm working on a project with Laravel 8 version and I want to work with vue js components without installing jetstream and inertia. Is it needed to install Jetstream with inertai in order to work with vue js in laravel 8?
You don't need any additional Laravel components to use Vue. You only need npm or yarn to install packages and create a composer.json file. Follow the instructions at https://v2.vuejs.org/v2/guide/ (for Vue2) or https://v3.vuejs.org/guide/introduction.html for (Vue3) for installation.
For Laravel/Vue, Vue will be used as a front-end, which will use ajax/Axios to use GET/POST requests to Laravel for the backend.
At first, you need to install laravel/ui package by running composer require laravel/ui:^2.4 as Said in laravel doc version 7
After that, you should run php artisan ui vue for adding vue scaffolding to the project.
after create laravel project,you need to install laravel/ui and don't specify the version
composer require laravel/ui
then run php artisan ui vue --auth for Generate login / registration
scaffolding...
php artisan ui vue without login/registration

Laravel 8.X - How to generate auth files/scaffolding in the absence of make:auth command

I am trying to port a legacy/joomla code into larvel framework. I am trying to reuse old database tables with laravel 8.16. I have added the following columns in the existing users table
created_at,
updated_at,
remember_token
Now, when i try to run 'php artisan make:auth'. The command is not available. What should I do or which command should I use to create scaffolding?
Laravel UI installation
At first, install laravel ui by running below command
composer require laravel/ui
Add UI scaffolding
You can add ui view by running:
php artisan ui:auth
And add authentication controllers by running
php artisan ui:controllers

I want to create login in laravel, and have problem in cmd with: php artisan make:auth

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

Categories