Skip to content

Instantly share code, notes, and snippets.

View Moix1's full-sized avatar

Abdul Moiz Moix1

View GitHub Profile
@Moix1
Moix1 / Laravel 5.6 Multiple Images Upload Issue
Last active June 1, 2018 20:17
I have problem in insertion of data with Laravel 5.6 ,I have controller In which I have written my code for storing form data after submission, In side this form I have three types of Image selection, mainPhoto as Single Image selection, otherPhotos multiple, fashionPhotos multiple and arabicPhotos also multiple, When i try to fill form and subm…
public function store(Request $request)
{
return $request;
$mainPhoto = $request->file('mainPhoto');
$otherPhotos = $request->file('otherPhotos');
$fashionPhotos = $request->file('fashionrPhotos');
$arabicPhotos = $request->file('arabicPhotos');
$slug = str_slug($request->name);