laravelBatch icon indicating copy to clipboard operation
laravelBatch copied to clipboard

"message": "Class 'App\\Http\\Controllers\\API\\Batch' not found",

Open bhojkamal opened this issue 4 years ago • 2 comments
trafficstars

I got error and could not update the data.

It says - "message": "Class 'App\Http\Controllers\API\Batch' not found",

when I submit the data.

bhojkamal avatar May 27 '21 16:05 bhojkamal

But it worked when I did batch()->update, how?

bhojkamal avatar May 27 '21 17:05 bhojkamal

@bhojkamal You need to write use Batch; at the the top of your class. The way it works with batch()->update is batch() is a helper function added by the package where Batch is a shorthand for the Batch Facade

itslit-tech avatar Feb 02 '22 14:02 itslit-tech