I want to store a file with resource id + extension i.e 1.csv,2.csv,3.txt,4.jpeg.
I am using laravel nova File Field to upload file in s3 is there any way I can get the id of that row before storing in db?
below is the code I am using to uploading files.
File::make('path')
->disk(config('filesystems.default'))
->rules('required','mimes:csv,txt')
->storeAs(function (Request $request) {
return $request->path->getClientExtension();
})
->path('csv'),
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2QpyRHC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire