Setting selected option in laravel form?

I need to give selected value like this html: <select name="myselect" id="myselect"> <option value="1"&gt...

Laravel check if collection is empty?

I've got this in my Laravel webapp: @foreach($mentors as $mentor) @foreach($mentor->intern as $intern) ...

No gulpfile found?

I am new in laravel. I am trying the command nmp install. it does not work. Then as shown in their official document...

How to clear Route Caching on server: Laravel 5.2.37?

This is regarding route cache on localhost About Localhost I have 2 routes in my route.php file. Both are working ...

NotFoundHttpException in RouteCollection.php line 161: in laravel 5?

I know this is very common question on stack overflow I tried few of them but its not working in my scenario . My C...

How To GroupBy the latest record on the group?

What laravel query would I use to groupBy('author_id') but the latest result. Right now everything I try pulls up th...

Setting selected option in laravel form?

I need to give selected value like this html: <select name="myselect" id="myselect"> <option value="1"&gt...

TokenMismatchException in VerifyCsrfToken.php Line 67?

I know that this is a known error with things like forms in Laravel. But I am facing an issue with basic authenticat...

Laravel check if collection is empty?

I've got this in my Laravel webapp: @foreach($mentors as $mentor) @foreach($mentor->intern as $intern) ...

Laravel 5.2 Storage::makeDirectory($dir) is not creating directory?

I am getting confused with this logic. I am using Laravel 5.2 Storage::makeDirectory to create two paths, first (vid...

Laravel check if collection is empty?

I've got this in my Laravel webapp: @foreach($mentors as $mentor) @foreach($mentor->intern as $intern) ...

Laravel 5.2 - pluck() method returns array?

I'm trying to upgrade my project L5.1 -> L5.2. In upgrade guide there's one thing which isn't clear for me: T...

Laravel 5.2 redirect back with success message?

I'm trying to get a success message back to my home page on laravel. return redirect()->back()->withSuccess('...

sudo: command not found when I ssh into server?

I am a newbie with server handling and Linux. I am trying to install composer on my server so that i can host my Lar...

Why am I getting a 422 error code??

I am making a POST request, but unable to get anything besides a 422 response. Vue.js client code: new Vue({ el:...