Support the ongoing development of Laravel.io →

Getting data from two models

I have one table as "Consultant" and another table as "ConsultantsStatus". There...

0 Likes
0 Replies

testing.. setting up db etc

so what do you guys do when creating tests? I have a setup method on the testcase (parent class) tha...

0 Likes
0 Replies
posted 9 years ago

Tick checkbox if record exists in related module.

Hi all, I have a profile module that is related to modules through a middle table module_profile. I...

0 Likes
1 Replies

upgrading laravel from 4.2 to 5

What would be the best way to update the framework leaving the same directory structure that larav...

0 Likes
2 Replies

Whats the difference with this code and which is faster

I have some confusion on what's the difference with this codes. I have been accustomed in using eloq...

0 Likes
4 Replies

[SOLVED] Auth Login event in Laravel 5.2

In Laravel 5.1 I was able to listen the Auth.Login event, but I can't do the same on 5.2. It seems t...

0 Likes
0 Replies

Laravel 5.0 | Eloquent Eager Loading resulting only in one row.

I am trying to implement laravel elquent eager loading concept. Here are my two models and the contr...

0 Likes
1 Replies

How to create relationship between two model

Hi I am New User of Laravel so,pls can anybody help me that how two join two model i have two tab...

0 Likes
1 Replies

How to constraint eager loading with query scope for each relation?

Hi all, I am creating a admin panel and I have 3 tables in my DB: groups, roles, users. I have a man...

0 Likes
0 Replies

Laravel PDF packages

Hi, I'm a beginner into Laravel. Guys maybe the same question asked before, but i think no harm aski...

0 Likes
2 Replies

Api with route parameters to scale down code. Class not found

I'm trying to make a api that uses route parameters so that i don't need 1000 routes for all the dif...

0 Likes
1 Replies

Auth session killed after redirect | laravel 5.2

We made a simple login form, when we post it its working fine, we are even logged in if we check the...

0 Likes
1 Replies
Solved

Login Via ajax not working Laravel 5.1

I am using ajax to login user. Here is the code but not working. Although the (Auth::attempt(['email...

0 Likes
7 Replies

Basic HTTP Auth with credentials stored on .env file

I'm trying to make a group of secret routes on my app. Route::group(['middleware' => 'auth.secret...

0 Likes
0 Replies

SQL SERVER default connection not working

Hi everyone, i found a really strange problem using sqlsrv driver for connecting to the database. If...

0 Likes
0 Replies
posted 9 years ago

Mass-create models with multiple relationships?

I have three models that are something like Grid, GridItem, and Item. Grid has pages, rows, and cols...

0 Likes
0 Replies

Auth middleware problem

I am having problems with the auth middleware. All appears to be working ok but then I noticed that...

0 Likes
2 Replies
Solved

Laravel password hashes through native php

My code is like this : <?php echo Hash::make('12345'); ?> error : Fatal error: Class 'Hash' no...

0 Likes
5 Replies
Solved

how to hide page and unhide page? (using auth, middleware..)

My app allows my company to upload banners that their client can then preview.. they can login and n...

0 Likes
0 Replies

Update multiple records using Eloquent

Hi In my controller:` $updaterec = Sme::where('rec_id', '=', $request->id)->update(['rec_id'...

0 Likes
2 Replies
Solved

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.