I just installed Laravel 5.4.* and I have error when I execute this command:
php artisan vendor:publish
vagrant#homestead:~/projects/xxxx_com$ php artisan vendor:publish
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'League\Flysystem\MountManager' not found
vagrant#homestead:~/projects/xxxx_com$
Have you got an idea?
Probably you added new package to composer.json but you haven't run composer install. So make sure you run:
composer install
and after that run
php artisan vendor:publish
You might need to update your composer, run composer update
and see if that help.
Related
On localhost every thing work okay but when I try to deploy laravel project to heroku I get this error:
message "In order to use the Auth::routes() method, please install the laravel/ui package"
I have tried the next things to fix this error but they are not working for me
composer require laravel/ui
php artisan ui bootstrap --auth
php artisan cache:clear
php artisan config:cache
php artisan route:cache
Manually clear the .php files within the bootstrap/cache folder and then php artisan config:cache.
And all of this solutions didn't work for me
Which version of laravel/ui are you trying to install? The newest - 4.x at the time of writing, is not compatible with Laravel 8. So you want to install 3.x for a version that supports Laravel 8.
composer require laravel/ui:^3.0
I have a big problem. I tried to use Tailwind in a new Laravel project following exactly all the documentation but as soon as I try to put the <link> to the css/app.css the HTML just stop working in the browser (localhost).
I tried also starting a new Laravel project with JetStream, but it does the same thing.
I also tried installing an older version of Tailwind but nothing seems to work.
I don't really know what to search for at this point.
Any help?
you can use tailwindCss in laravel with breeze package or Jetstream
1- with Breeze:
//composer package
composer require laravel/breeze --dev
then
php artisan breeze:install
Or Breeze with Inertia
php artisan breeze:install --inertia
Finalizing The Installation
npm install
npm run dev
php artisan migrate
2- with Jetstream
//composer package
composer require laravel/jetstream
Install Jetstream With Livewire
php artisan jetstream:install livewire
php artisan jetstream:install livewire --teams
Or, Install Jetstream With Inertia
php artisan jetstream:install inertia
php artisan jetstream:install inertia --teams
Finalizing The Installation
npm install
npm run dev
php artisan migrate
I wanted to change the app.name of my Laravel project, I run:
php artisan app:name Retro
But have error:
Fatal error: Uncaught ReflectionException: Class Retro\Console\Kernel does >not exist in C:\photo->storage\vendor\laravel\framework\src\Illuminate\Container\Container.php:779
Then, I edited APP_NAME = Retro, and run:
php artisan config:clear
But it not working
Try this
After update App name
php artisan app:name myname
Follow this commands
php artisan cache:clear
php artisan config:clear
composer dump-autoload
What Composer and Artisan commands are necessary to run during deployment of a brand new Laravel application? Per Laravel 5.7 documentation, are these the only essential commands?
composer install --optimize-autoloader --no-dev
php artisan config:cache
php artisan route:cache
Methods are:
composer install --optimize-autoloader --no-dev
composer dump-autoload
The others are optional.
Do you cache your configs? If yes, include php artisan config:cache
Do you cache your routes? If yes, include php artisan route:cache
Do you cache your views? If yes, include php artisan view:cache
Do you want to flush your app cache every time you deploy? If yes, include php artisan cache:clear
Beware that flushing your app cache could have many undesirable effects, especially if you're using your cache system for sessions, queues, etc. as it would clear out everything
I am using laravel forge to deploy the application. The form submission on the local server works fine. It finds the right route declared in the route file. But it does not work on the live server. On live server when I hit submit button I got "Whoops, looks like something went wrong." message.
What could be the reasons? I will highly appreciate your help. Thanks in advance.
Here are the routes declared:
Route::get('/training/seo/outreach/brochure','BrochureDownloadController#index');
Route::post('/training/seo/outreach/brochure','BrochureDownloadController#store');
Here is the code on form
<form class="js-validate" method="post" id="brochure_download" name="brochure_download" action="{{ action('BrochureDownloadController#store')}}">
{{ csrf_field()}}
Deploy Script ( On forge)
cd /home/forge/www.xponent.com.bd
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
composer dump-autoload
php artisan cache:clear
echo "" | sudo -S service php7.2-fpm reloadif [ -f artisan ]
then
php artisan migrate --force
fi
Update your script
Add php artisan config:cache
cd /home/forge/www.xponent.com.bd
git pull origin master
composer install --no-interaction --prefer-dist --optimize-autoloader
composer dump-autoload
php artisan cache:clear
php artisan config:cache
echo "" | sudo -S service php7.2-fpm reloadif [ -f artisan ]
then
php artisan migrate --force
fi
Please run below command:
php artisan config:cache
php artisan cache:clear
php artisan view:clear
php artisan route:clear