Class 'GrofGraf\LaravelPDFMerger\Providers\PDFMergerServiceProvider' not found" - laravel

I already composer dumpautoload, php artisan config:clear, delete all cache present in bootstrap but error show..

Related

Laravel, Jenssegers & Cashier: Call to a member function prepare() on null

When using Laravel with Jenssegers/MongoDB and Cashier, I receive the error:
Call to a member function prepare() on null.
Browse to laravel/vendor/cashier/src/
Open both subscription.php and subscriptionItem.php and change
use Illuminate\Database\Eloquent\Model;
to
use Jenssegers\Mongodb\Eloquent\Model;
remove the composer.lock and run this command
composer require jenssegers/mongodb
after that run these command as well:
composer dump-autoload
php artisan cache:clear
php artisan view:clear
php artisan config:clear
and restart your server. also, make sure you have installed the latest version of composer.

ReflectionException Class emails does not exist php artisan queue:work

when I do php artisan queue:work I'm getting error
ReflectionException Class emails does not exist
Make sure to update composer.
or try this - delete vendor folder and run.
composer update

RuntimeException in Laravel 5.3

I've just installed Laravel 5.3. php artisan serv also runs.
But as I hit http://localhost:8000/ on browser I get a RuntimeException.
Is there any solution to prevent this error?
Create cipher key by this command
php artisan key:generate
Then run server
php artisan serve
To avoid this problem always use composer for creating project.
Ex. composer create-project laravel/laravel your_project_name --prefer-dist
if you create project by composer then need not to run this command.
php artisan key:generate

Reload .env constants in Laravel 5.2

I just changed a constant inside my .env file. The new value is shown up correctly with php-cli (via tinker), but not in my web app (php-fpm).
So far I've tried everything as suggested:
sudo service nginx restart
sudo service php7.0-fpm restart
sudo service php7.0-fpm reload
.
php artisan config:cache
This will generate a cache config file in bootstrap/cache/config.php
php artisan config:clear
This will remove cache config file in bootstrap/cache/config.php
php artisan cache:clear
What exactly does does ? What type of cache does it clear?
php artisan clear-compiled
This clear compile classes
composer dump-autoload
This will generate/update composer autoload file.
I have some .env variables that are not part of any config file. So it is useless for me to run any of the artisan commands.
None of the above php artisan commands don't deal directly with $_ENV.
Seems that $_ENV is stored somewhere in the server and laravel cannot update it once properties are populated.
The only solution I've found is restarting the server.
I'm running a Laravel Forge instance.
If it is cached and you need to reload it you can simply use:
php artisan config:clear
This will pull in any changes that you have since made.
Try to delete the config on file on: Bootstrap/cache/config.php
AS well you can try: php artisan config:cache or php artisan cache:clear

Unable to install Laravel's 5 cashier/stripe packages

I have put the "laravel/cashier": "~5.0" line in my composer.json file, updated it;
Next, I have put the line 'Laravel\Cashier\CashierServiceProvider' into $providers array in, app.php
Then, in cmd when I try to migrate table, php artisan cashier:table builder, i get the message:
[InvalidArgumentException] There are no commands defined in the "cashier" namespace.
Then, when I type: php artisan, there is no cashier:table command, what and where is the problem?
I had same problem and when I run that commands php artisan config:cache and php artisan clear-compiled it worked...

Resources