Answer the question
In order to leave comments, you need to log in
How to get image path in Laravel?
Hello. I have such a problem. There is a code that saves the data from the form to the database:
public function NewpostSubmit(AdminpanelRequest $postData) {
$newpost = new NewpostModel();
$newpost->title = $postData->input('title');
$newpost->thetext= $postData->input('thetext');
// $coverpath = $postData->file('uploadPostCover')->store('uploads', 'public');
// $newpost->coverpath = $postData->input($coverpath);
$newpost->save();
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question