How to force Laravel Project to use HTTPS for all routes?
You can set ‘url’ => ‘https://youDomain.com’ in config/app.php or you could use a middleware class Laravel 5 – redirect to HTTPS.
You can set ‘url’ => ‘https://youDomain.com’ in config/app.php or you could use a middleware class Laravel 5 – redirect to HTTPS.
I’m assuming you added $this->middleware(‘auth’); inside the constructor of your controller to get the authentication working. In your login/register forms, if you are using {!! Form::someElement !!}, add the following line at the top as well: Or if you are using input tags inside your forms, just add the following line after <form> tag: Hope … Read more
Well It was pretty simple In Implicit call I should define the route only once so now in url collection/home if being parsed then laravel will automatically call getHome() function
I am new in laravel. I am trying the command nmp install. it does not work. Then as shown in their official documentation, I tried but I was getting access denied error. So I gave It seemed to give me some correct result. then I gave but it says that, “npm WARN [email protected] No description … Read more
Well… I figured out what was going on. File::exists(public_path() . “/video/$user”) is looking for this: /home/ubuntu/workspace/site/public/video/N And Storage::makeDirectory(public_path() . “/video/$user”) is creating a directory in: /home/ubuntu/workspace/site/storage/app/public/video/N So I can go to site/config/filesystems.php and change the routes for app and app/public ; you can check them by using the helper storage_path(‘app’).But, instead, I decided to save the videos in the storage/app/public/video and storage/app/public/thumbnails, and I am getting some package’s … Read more