Support the ongoing development of Laravel.io →

4,602 Threads

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

Left Join empty result

SELECT b.cat_id, b.cat_parent FROM cat AS b LEFT JOIN cat AS a ON b.cat_parent = a.cat_id WHERE b.ca...

0 Likes
1 Replies

Laravel 4 created_at field cannot be saved when using eloquent creates record

Runtime version: PHP 5.3.10 Laravel 4.0 Create table like this: Schema::create('components', functio...

0 Likes
1 Replies
posted 10 years ago

Passing array to view!

here is my function to select data from database http://laravel.io/bin/Qq2oD and i get this error !...

0 Likes
2 Replies

Empty column when inserting data

Hi, When I create a new item, I always have the column 'link' empty in my table. The table's column...

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

© 2024 Laravel.io - All rights reserved.