Are you sure want to delete??

I have on my delete function a message for confirmation of delete when i put ok nothing is done Function from cont...

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 Application Encryption Key Has Been Specified?

I'm new to Laravel and I'm trying to use the Artisan command... php artisan serve It displays... Laravel deve...

updateOrCreate isn't filling all the fields in Laravel 5.6?

I have a code:- $tokenUpdated = AppToken::updateOrCreate( array( 'u...

Laravel nested relationships?

I'm having trouble getting a very-nested relationship to work correctly in laravel. The wanted behaviour is as foll...

Combining orWhere and where in Laravel?

I have an SQL query as follows: SELECT * FROM AS T INNER JOIN TABLE2 AS T2 ON T1.id =T2.tid WHERE (t1.userid= $user...

Composer Error while installing Laravel “Failed to decode response: zlib_decode(): data error”?

I've already installed laravel a lot of times, but today when I had to install it for my project I experienced the f...

Search and sort in laravel??

In laravel, I know you can do $users = Post::where('hide', '=', 0)->take(40)->get(); to get all Post-object...

laravel foreach loop in controller?

i have a problem about looping data in controller (laravel 4). my code is like this: $owner = Input::get('owner'); ...

Laravel Ajax Response And Handling Errors?

Here is a part of my html file. <div class="form-group{{ $errors->has('address_name') ? ' has-error' : '' }}"...