mavinoo / laravelBatch

insert batch and update batch in laravel
MIT License
564 stars 118 forks source link

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

Open bhojkamal opened 3 years ago

bhojkamal commented 3 years ago

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 commented 3 years ago

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

itslit-tech commented 2 years ago

@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