Skip to content

Tag: laravel-5

Laravel 5.3 multiple file uploads

How can I upload multiple files in Laravel 5.3. If I try it with 1 image it works but multiple images are not uploaded. This is my code: if($request->hasFile(‘attachment’)) { foreach($request-…

Laravel 5 command – Mandatory options

I am trying to write a laravel command but I can’t have the options to be mandatory. I do understand that the concept of option is being “optional” but I’d like to have a command in which it is clear which input you are inserting and in no particular order. i.e. I would like to achieve…

Laravel 5 dynamically run migrations

so I have created my own blog package in a structure of Packages/Sitemanager/Blog I have a service provider that looks like the following: Now, what i would like to do is run the migrations dynamically if they have never been run before or within an installation process i suppose. I’ve seen in older doc…