Level 75
I would consider using a package like intervention.
1 like
I want to upload an image and resize with laravel but resize() and fit() methods not work what should I do?
controller:
public function store(Request $request)
{
$index_image = $request->file('index_image')->store('uploads');
$indexArticle=[
'title'=>$request->input('title'),
'short_explain'=>$request->input('short_explain'),
//image storage
'index_image' => $index_image,
];
indexArticle::create($indexArticle);
}
Please or to participate in this conversation.