【发布时间】:2021-07-09 09:20:03
【问题描述】:
$imagePath = (request('image')->store('uploads', 'public'));
//dd($imagePath);
$image= Image::make(public_path("storage/{$imagePath}"))->fit(1000,1000);
$image->save();
auth()->user()->posts()->create([
'caption'=>$data['caption'],
'image'=>$imagePath,
]);
【问题讨论】:
标签: laravel image path intervention image-file