Laravel. How to reverse `php artisan breeze:install` - php

I have ran php artisan breeze:install but I want to reverse it so I can install vue: php artisan breeze:install vue.
How to reverse the php artisan breeze:install command.
Any help would be appreciated. Thank you.

Delete the vendor folder
Remove the breeze from the composer.json
Then composer install

I think removing the blade files that are created and running the install command again should do the job, maybe some of the controllers have to be removed too.
Edit:
Removing breeze from the composer dependecies won’t help as you are trying to install it with vue

You would just scroll down to the folder "vendor\laravel" and delete the laravel folder.

Related

Laravel/horizon missing css/js build

The /horizon route from the laravel/horizon package works, but the css and javascript are not loaded.
this is what the road /horizon looks like:
However, I just installed the package and followed the laravel documentation installation
composer require laravel/horizon
php artisan horizon:install
php artisan optimize
npm run dev ( and I tried npm run build,...)
this is my config :
laravel-mix 4.0.7
laravel/horizon 5.14
laravel 8.0
Can you help me ?
Make sure assets are included in your application. Try running the following command.
php artisan vendor:publish --tag=horizon-assets && npm run dev
Resolved with variable environment :
ASSET_URL=/.

Cache clear probem in Larave

I have a problem. I am download project from hosting. now when I run the project this error shows.
pic attached.
I think this is cache problem, I clear cache, view, but still same issue.
let's say you have installed composer,
now run this command and see:
composer dump-autoload
Just delete the vendor directory and composer.cache file from project root and hit the following commands.
composer install
php artisan optimize:clear
php artisan serve
Through these, you can also check if there is any composer-related issue.

How to activate laravel

php artisan serve Heading ##enter image description here
php artisan serve
This vendor/autoload.php will be generated by composer.
Run composer install before you try to run your application.
If you have not installed composer yet. Follow the instructions on this page.
Run composer install or composer update first before you can use php artisan command. The vendor/autoload.php will be generated by composer.

Issues using php artisan on a laravel 5.7.* app

I've been trying to work on a laravel app but I can't even make it start.
I've run composer install, composer global update, composer udpate, composer self-update and several other commands,
I've deleted the vendor folder, the composer.lock file, re-ran composer install and things I've found online to no avail. This is the error I keep getting:
#php artisan package:discover
In Container.php line 779:
Class request does not exist
Script #php artisan package:discover handling the post-autoload-dump event returned with error code 1
Not sure where to go next. Any ideas?
I would suggest you remove your composer itself and re-install the composer. the try install you laravel packages with it.
Try clearing application cache using this command: php artisan cache:clear
The cache:clear command can be used to clear the applications cache files.
Don't worry about your laravel
check composer correctly installed on your system
check composer have access for READ and WRITE in your system
after your sure about things
check your laravel install in your system for PHP you have and find specific you php version composer connected to it (Those who have multi PHP)
then have two option:
composer global require laravel/installer
then laravel new blog or
composer create-project --prefer-dist laravel/laravel blog
then go to folder cd /projectName
Use PHP's built-in development server: php artisan serve

Auth resources are missing in laravel

I want to make use of auth system which comes with the laravel package but the problem is when I make new laravel package using composer i.e composer create-project laravel/laravel project name --prefer-dist
it do not install those auth resources which includes (i.e. auth folder inside resources > views) and also I can't find the Services Folder inside app directory.
All other things are working fine except this authentication system.
What can be the possible problems? Please give me solution
I am working with MAMP.
Taylor Otwell has made it opt-in for Laravel 5.1
You need to run following command after installation
php artisan scaffold:auth
UPDATE
I think this has been answered here
You could also run the command php artisan make:auth in the root directory of you laravel project. I had the same problem and it worked for me.
The command php artisan scaffold:auth didn't work for me i don't know why.
it issued the error:
[Symfony\Component\Console\Exception\CommandNotFoundException]
Command "auth" is not defined.
Did you mean this?
make:auth
in Laravel 5.2 you just have to run this command "php artisan make:auth" and the auth folder will be created
Since laravel 6.* version make:auth is no longer supported, use ui:auth instead.
For deploying ui pack run
composer require laravel/ui --dev
then update composer.json :
composer update -W
and do the:
php artisan ui:auth
You need execute
php artisan make:auth
now if your style css and js are missing
You need load file .css and .js
1) execute in your project
npm install
2) then execute
npm run dev => now in folder /public now exist folder js and css
3) reload page

Categories