Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't works via controller code #9

Open
awadheshmeshram opened this issue Nov 20, 2018 · 0 comments
Open

Can't works via controller code #9

awadheshmeshram opened this issue Nov 20, 2018 · 0 comments

Comments

@awadheshmeshram
Copy link

awadheshmeshram commented Nov 20, 2018

That package works fine in the terminal with this command php artisan db:back --database=mysql but when i try to execute via the controller code, it doesn't work and this is my code snipped-

 Artisan::call('db:backup',['--database'=>'mysql']);//this is command
    
 return Redirect::back()->with('success','Database backup was successful, 
.SQL file was saved in dump folder.');

I also try with this code but doesn't work

Artisan::call('db:backup',['--database'=>'mysql']);
Artisan::call('db:backup');
Please, anyone, help me out exactly where is the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant