https://laravel.com/docs/5.7/requests#storing-uploaded-files
Just use normal laravel techniques.
I am doing the following when creating my users. I it possible to put this code in the Nova dashboard so it does the same when creating a user. I looked through documentation but was unclear.
I have not bought Nova yet, but if this is possible then I will be purchasing.
$photo = Image::make($request->file('file'))
->resize(200, null, function ($constraint) { $constraint->aspectRatio(); } )
->encode('jpg',80);
$randomPath = $user->id.'/profile/'. uniqid('',true) . '.jpg';
Storage::disk(config('filesystems.default'))->put( $randomPath, $photo);
$user->avatar = $randomPath;
Please or to participate in this conversation.