The command "backup:run" does not exist. #1265
Unanswered
tamim-ikbal
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Also getting this issue when calling Started when upgraded from |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi spatie, I have faced a problem when I am run the command from my code, My code is fine, I have test the code, Because when I run this
Artisan::call('view:clear');
then its working, But when I run thisArtisan::call('backup:run');
Browser told me The command "backup:run" does not exist.Note: when I am run this
php artisan backup:run
using cmd then it's working, I will be grateful, If you guys help me, Thank youHere is my All code of controller:
`<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Artisan;
class BackupController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request)
{
try {
Artisan::call("backup:run");
}
`
Beta Was this translation helpful? Give feedback.
All reactions