php artisan vendor:publish --provider="SpatieBackupBackupServiceProvider"
Publishing complete.
But no config/laravel-backup.php file.
If i manually create the file copying the laravel-backup.php from the package, and then run the backup command, i get:
PHP Fatal error: Call to undefined method IlluminateFoundationApplication::backupWasSuccessful() in /......./vendor/spatie/laravel-backup/src/Notifications/EventHandler.php on line 29
Using Laravel 5.4 and spatie/laravel-backup: "^3.11".
Maybe you're caching your config files (you shouldn't do that in development)?
Run php artisan cache:clear and try again.
I don't know how to cache my config files. How can I make sure?
Ran cache:clear but still
php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
does not create config/laravel-backup.php
Did you install the service provider?
Yes, I have Spatie\Backup\BackupServiceProvider::class,
in my $providers array. The vendor:publish command does output Publishing complete.
Also, following is in my composer.json, If it helps:
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-debugbar": "^2.4",
"laravel/framework": "5.4.",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"sentry/sentry": "^1.7",
"sentry/sentry-laravel": "^0.7.0",
"spatie/laravel-backup": "^3.11",
"tcg/voyager": "^0.11.12"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.",
"phpunit/phpunit": "~5.7"
},
Pretty sure it's caused by something specific to your app, it's working fine here.
Could you try installing the package in a vanilla Laravel app?
same problem
@Muntader may be you can list down your composer.json, so we can compare.
@dattz
"require": {
"php": ">=5.6.4",
"barryvdh/laravel-dompdf": "^0.8.0",
"laravel/framework": "5.4.*",
"laravel/tinker": "~1.0",
"laravelcollective/html": "^5.4.0",
"milon/barcode": "^5.3",
"spatie/laravel-backup": "^4.18"
},
"require-dev": {
"fzaninotto/faker": "~1.4",
"mockery/mockery": "0.9.*",
"phpunit/phpunit": "~5.7"
},
[phpox@localhost laravel]$ php artisan cache:clear
Cache cleared successfully.
[phpox@localhost laravel]$ php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
Publishing complete.
[phpox@localhost laravel]$ composer require spatie/laravel-backup
Using version ^4.18 for spatie/laravel-backup
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postUpdate
> php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
[phpox@localhost laravel]$ php artisan vendor:publish --provider="Spatie\Backup\BackupServiceProvider"
Publishing complete.
Nothing change idont see any command of backup in artisan and no config file in/config
Run php artisan config:clear and try again
On Sun, 25 Jun 2017 at 11:44, Muntader notifications@github.com wrote:
"require": { "php": ">=5.6.4", "barryvdh/laravel-dompdf": "^0.8.0", "laravel/framework": "5.4.*", "laravel/tinker": "~1.0", "laravelcollective/html": "^5.4.0", "milon/barcode": "^5.3", "spatie/laravel-backup": "^4.18" }, "require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "phpunit/phpunit": "~5.7" },[phpox@localhost laravel]$ php artisan cache:clear
Cache cleared successfully.
[phpox@localhost laravel]$ php artisan vendor:publish --provider="SpatieBackupBackupServiceProvider"
Publishing complete.
[phpox@localhost laravel]$ composer require spatie/laravel-backup
Using version ^4.18 for spatie/laravel-backup
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload filesIlluminateFoundationComposerScripts::postUpdate
php artisan optimize
Generating optimized class loader
The compiled services file has been removed.
[phpox@localhost laravel]$ php artisan vendor:publish --provider="SpatieBackupBackupServiceProvider"
Publishing complete.Nothing change idont see any command of backup in artisan and no config
file in/config—
You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub
https://github.com/spatie/laravel-backup/issues/465#issuecomment-310892902,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdiDTnoJgz9AdfBD9eECtpz2m82MOfHks5sHivggaJpZM4N56lB
.>
Freek Van der Herten https://spatie.be +32 495 84 27 91
Ran, still doesn't work
Could you try installing the package in a vanilla Laravel app?
On Mon, 26 Jun 2017 at 06:30, Abhishek Saini notifications@github.com
wrote:
Ran, still doesn't work
—
You are receiving this because you modified the open/close state.Reply to this email directly, view it on GitHub
https://github.com/spatie/laravel-backup/issues/465#issuecomment-310961392,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdiDUP5i9H1fBVoKPOx8V_AXaywQfLSks5sHzPtgaJpZM4N56lB
.>
Freek Van der Herten https://spatie.be +32 495 84 27 91
Just run
php artisan config:cache
Hi, I used PhpStorm, and this command does not work in Command Tools, run these commands in other consoles.
Most helpful comment
Just run
php artisan config:cache