Support the ongoing development of Laravel.io →

4,587 Threads

Delete relations/child relations without CASCADE

I have the following models (example!). When deleting a tutorial I'm expecting the 'deleted' method...

0 Likes
1 Replies

Max date issue solved

In case anyone else runs into a place where you need to bring table results and get the most recent...

0 Likes
0 Replies

Use DISTINCT on joined columns with Query builder

I've got two tables products and artifacts who are in a one-to-many-relationship to each other. Now...

0 Likes
1 Replies

Update existing row with unique rule (validation fails)

Hi, first question I cant find working answer. Laravel 4.1 ###rules public static $rules = [ 'name'...

0 Likes
7 Replies
Solved

specifying table in model is not working

Hi, i tried to set table in User model like this 'protected $table = 'users_account'; ' but its...

0 Likes
5 Replies

Join multiple HasManyThrough results

User id Role id Pemission id read update create delete Position id ###Relationships ####User...

0 Likes
1 Replies

limit ::with query

I couldn't find an answer to this so.... Is there anyway to limit Product::with('picture') to only g...

0 Likes
3 Replies
Solved

Method that can be called both statically and non-statically

Hi, I wanted to create a method in the User model that behaves differently when called statically or...

0 Likes
0 Replies

Laravel Commenting System?

Hello! I am new using laravel framework. I want a simple commenting system to my application using l...

0 Likes
1 Replies

Databaseless Laravel - turn off database connection completely?

I am building an API calling app which needs no database. In trying to register a new class, I updat...

0 Likes
2 Replies

using database for session storage in laravel framework

I am using Laravel framework of PHP for development.Now for my application, i want to stor...

0 Likes
0 Replies

Advanced relationships with eloquent

Hi, I have been struggled with this couple of days and i just can't get my head around with this. I'...

0 Likes
2 Replies
posted 10 years ago

Migration doesn't work

Hello! Sorry for my bad english I have migration: DB::table('settings')->insert([ [ 'name' =>...

0 Likes
2 Replies

Advanced search combined values of 2 columns

Hi, i'm trying to create a search functionality that uses 3 tables, and it uses combined values from...

0 Likes
5 Replies
Solved

Eager Load Constraints issue

i have the following tables users devices sensors measurements with the following relationships user...

0 Likes
2 Replies

Advanced queries in a Laravelesque way

Is there a 'Laravel way' of writing something like this? $products = Product::select(DB::raw( 'mw_pr...

0 Likes
3 Replies
Solved

Query for Google Map

Hi guys, I'm new to Laravel and enjoy to play with it. But I stuck almost 2 hours on using query bui...

0 Likes
2 Replies
Solved

how can i run complex raw sql query in laravel

i have some little complex sql query ,i want run in laravel ,i do like that \DB::connection('models'...

0 Likes
4 Replies

eloquent::save() behavior proposals

Perhaps this should go into github, but I will let it know here first to hear your opinion. Given th...

0 Likes
0 Replies

Caching a complex DB::select(...) query

Hi, I am trying to implement some basic database caching but I am running into some difficulties. I...

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.