Support the ongoing development of Laravel.io →

4,606 Threads

Model problem

When I use , for example, User:all(); everything works and give me all records from table that conne...

0 Likes
4 Replies
Solved

Create model urls

Hi guys, I was wondering if it was possible to do a method in the model to get the url of the model?...

0 Likes
3 Replies

[Package] NestedSet for creating trees in database (categories, menus)

The packge for Laravel 4, 5 (>= 4.1) that simplifies and speeds up managing hierarchical structur...

0 Likes
4 Replies

Inserting multiple rows to database

Hi, I've created a form where users can choose multiple checkboxes. <input type="checkbox&qu...

0 Likes
0 Replies

Get collection and associated pivot with one query

Here are my models: class BookReading extends Eloquent { // Book reading has many authors p...

0 Likes
1 Replies
Solved

Mail config file from data base

I made a model 'Setting' and a static method 'get' and I use it for get configs from DataBase. For E...

0 Likes
1 Replies
Solved

Editing multiple rows

How do I edit multiple rows in Laravel? I've searched Google and I'm seeing all sorts of mentions of...

0 Likes
2 Replies

[Package] Perform searches in a table giving priorities to each field

Searchable, a search trait for Laravel Searchable is a trait for Laravel 4.2+ that adds a simple sea...

0 Likes
0 Replies

Query Scope with Repositories

Having trouble finding the way to use Query Scopes with Repositories. Is there a way? Would like to...

0 Likes
2 Replies

creating category model where it has parent of category model itself.

I am creating category model where it has parent of category model itself.. i did the relations in m...

0 Likes
1 Replies

How Eloquent works by using 2 where methods ?

I'm using 2 where methods and I don't know how laravel bind them(&& or ||). Below is the cod...

0 Likes
2 Replies
posted 10 years ago

how to use firebirdsql in laravel

how to use forbird sql with laravel.?

0 Likes
0 Replies
posted 10 years ago

Why use Fluent Query Builder?

Hi again, I am learning about Fluent, but my big question is "why?" Can't I just write mos...

0 Likes
3 Replies
Solved

Please support Postgres data types in 4.3

Would really love to see pg data types supported in migrations and supported in eloquent. Json, json...

0 Likes
0 Replies

Paginator->each() returns instance of Collection, not Paginator.

Hi all. I was surprised that the Paginator instance returned by query builder's paginate() had a pr...

0 Likes
0 Replies

Storing multiple checkbox values into mysql database

Hi, I'm making a form where users are able to choose more than one checkbox choices. http://laravel....

0 Likes
2 Replies
Solved

The relationships between 3 tables

EER: http://imgur.com/U7RpNOn Hello, I'm a new on laravel relationship I've question about this. fo...

0 Likes
0 Replies

Database for each user

Hi, In my system I have a main database where is a "users" tabel and for each user I have...

0 Likes
2 Replies
Solved

Testing Relationships

Hi all! How can I mock a call to One-to-Many relationship? For example, I have a call in controller...

0 Likes
3 Replies
posted 10 years ago

Schema Builder - how to create partial keys?

Hi, is there something like $table->timestamp('pid')->nullable()->index()->where('pid',...

0 Likes
0 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.