adnan483

of course, @BezhanSalleh I did composer update, composer dump-autoload, created new 5.4. project and copy resources, public folder, and app folder and again same problem

Snapey
Snapey
3 months ago (924,105 XP)

what karavel version? php artisan version

adnan483

@Snapey Laravel Framework 5.4.36

BezhanSalleh

@adnan483 check app/Console/Commands/Kernel.php if you have any commands there referencing to back:mysql-dump delete it duh... if there isn't any and if you are on sublime Ctrl+Shift+F and set your search term to backup:mysql-dump then in where drive:\www\your_project_root_directory\,*.blade.php,*.php,*.json,*.* hit enter... you know the rest... because your error says is that somewhere in your code you are using something that references that backup package of yours... hope it works...

adnan483

@BezhanSalleh Thank you for advice, but I solve this problem deleting file services.php from bootstrap/cache, can you suggess me any other working backup?

BezhanSalleh

@adnan483 as @Snapey suggested: https://github.com/spatie/laravel-backup this is the best package there is right now, and it has a very through documentation: https://docs.spatie.be/laravel-backup/v3/introduction... create a test project and test the package there not in your real project and give it a try, this way if anything goes wrong you can just delete the whole thing without affecting your main project.

adnan483

@BezhanSalleh I finally insert it into my project, but how to backup only database, I tried this but doesn't work?

 \Artisan::call('backup:run --only-db');
BezhanSalleh

@adnan483 you can't exactly call artisan commands as you would in CLI. In your case you would do as follow:

\Artisan::call('backup:run',['--only-db'=>true]);

check this out: https://laravel.com/docs/5.4/artisan#programmatically-executing-commands

testlara

Sir , I want to build a share with whatsapp link of a product in mobile end api ..(I am telling in mobile apps we saw : share this product with whats app .i am telling about that ) The problem is what would be the link ? api service link is separate to web end ..if a user got link in mobile end if he installed the app is ok ...but if he hits with url a jeson file would show ,which is bad ..How to solve it ..Please help me ..For information that projectt is no front end for web end ,but has front end in mobile end ..Web end has only admin panel ...So guide me if u have any solutions please !!!

Please sign in or create an account to participate in this conversation.