Support the ongoing development of Laravel.io →

4,606 Threads

Consolidate All Migrations File in On File

Hi, I have now lots of migrations files, is it posible to put them all in on big file, or there is a...

0 Likes
5 Replies

about database table design in authentication

I use database for auth. Should the user table must have fields, "id", "password"...

0 Likes
1 Replies

[HELP] Query a list by month

I have a table lets say "events" and a field date inside that table that the user defines....

0 Likes
1 Replies

Eloquent relationship returning an empty collection

I have 2 models Crew and Event with the corresponding tables crews and events. Crews have many even...

0 Likes
3 Replies
Solved

Deep saving Models

I come from a CakePHP background which has the idea of deep saving models. For example, a Person can...

0 Likes
1 Replies

Creating dropdown with optgroup from Laravel class

So this is what I've got so far. But as you'd expect, it's only filling the array with the first sub...

0 Likes
1 Replies
Solved

Homestead with Locally Synced Database

I was curious if there is a way using Vagrant (or Homestead) to have your DB files work like your PH...

0 Likes
5 Replies

last 3 comments of each post using hasMany

$posts=Post::with(['comment' => function($query) { $query->orderBy('created_at', 'desc'); $que...

0 Likes
0 Replies
posted 11 years ago

Laravel join with LIKE

Hi there! I have got two SQL issues: I need to join two tables by comparing the field tx_ard_users...

0 Likes
7 Replies

sqlsrv only works in console commands

Hi guys, i'm having a strange problem. I have 2 databases, the main one is MySQL, the other Microsof...

0 Likes
4 Replies
Solved

app/config/app.php 'key'

Re: app/config/app.php 'key' Hi, I am trying to find out whether this key should be kept on a differ...

0 Likes
0 Replies
posted 9 years ago

Binary Column with Length?

What do you think about adding support for column type binary with length specified? Current there i...

0 Likes
1 Replies

Helper Function not working in configuration file

Hi, I am trying to use my helper function from services.php file. But it dose not work for me. If i...

0 Likes
0 Replies

laravel 5.1 events how to

need some one to explain how to make a event on database change and show it on mi navebare to a spes...

0 Likes
0 Replies

Relationships problem in Eloquent

Hello all, I'm struggling with the following problem. I have three tables - Users, Groups and Roles....

0 Likes
4 Replies

Search Relationship -> Search returns too many results

Hello all, I have two models which are related. I am trying to do a search in Products and only disp...

0 Likes
1 Replies

SQLSTATE[HY000] [1045] Access denied for user ''@'localhost' (using password: NO) How to Solve

Hello, I am trying to setup the environment variables and I have it working on my CodeAnywhere IDE b...

0 Likes
1 Replies

[Clarification] About multilevel transactions behaviour in Eloquent

When I do: DB::beginTransaction(); //T1 Device::insert(array("submit_hash" => "tri...

0 Likes
1 Replies

Create new database and tables on the fly

I was reading the post "Create new database and tables on the fly" I tried to implement an...

0 Likes
1 Replies

How can page through the results? laravel

How can page through the results? .It With ajax. to bring the data to my view , I want to use pagina...

0 Likes
1 Replies

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.