Support the ongoing development of Laravel.io →

4,311 Threads

[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

Routes vs URL Parsing

What are the benefits of utilizing laravel's "Routes" opposed to having a custom bootstrap...

0 Likes
1 Replies

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
posted 10 years ago

Model with many to many relationships

HI, I want to create a department search.So i created 5 database tables: Department ID | NAME Depart...

0 Likes
3 Replies
Solved

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
posted 10 years ago

Multiple where queries, using orWhere, in fields of model and related models

Please help with this SO problem. Would be seriously appreciated :) Thanks. http://stackoverflow.com...

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

Proper chaining for my Pivot table to execute Pivot Update

How do I properly execute this function cause currently when I run this function all data will be up...

0 Likes
24 Replies
Solved

radio buttons wont validate when using the "sometimes|required" rule

I have 2 forms validating from the same model, so its kind of a multi part form. The first form vali...

0 Likes
2 Replies

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

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

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

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.