laravelBatch
laravelBatch copied to clipboard
"message": "Class 'App\\Http\\Controllers\\API\\Batch' not found",
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.
But it worked when I did batch()->update, how?
@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