Support the ongoing development of Laravel.io →

4,311 Threads

Unexpected behavior: Session blocking model events

Problem: Model events (Model::saving, etc...) don't work anymore after putting an instance of the mo...

0 Likes
1 Replies

Converting Empty String To Null

I'm not sure how everyone else does it, but just wanted to get some thoughts (and cleanup) on how I'...

0 Likes
0 Replies

Simple Arrays with ID as Key

I know that Laravel has a wonderfully useful lists() method that you can use with either Eloquent or...

0 Likes
0 Replies

the syntax for redirection and the where clause

Hello So, I want to get routes like these myweb.com/account/company1/adm myweb.com/account/company2...

0 Likes
0 Replies

Keep data to all views

Hi, I`m new with laravel and I have one question. I have to get some data from database and keep dat...

0 Likes
1 Replies
posted 10 years ago

Method [all] does not exist.

Hi why do I get this error? $email = Email::all(); BadMethodCallException Method [all] does not e...

0 Likes
1 Replies
posted 10 years ago

Relationships

Hello, Is it possible to create eloquent relations for the following situation: A blogs page where b...

0 Likes
3 Replies

[Package] Listify - Turn your model into a list!

Hello! I wanted to post a link to a package I've been working on for the last couple of months. I'm...

0 Likes
5 Replies

How do I update value of subsequent parent records

I have two tables: members and contributions. The members table has a recursive relationship, that i...

0 Likes
4 Replies

Do you need to create a model for your pivot table?

I have a post table and that post may be included in multiple sections so now I have 3 tables: post...

0 Likes
2 Replies
Solved

How to use unix timestamp in eloquent?

I want to use the created_at, updated_at and deleted_at fields with unix timestamp.

0 Likes
2 Replies
Solved

Pivot generated, but migration error

I am attempting to create a pivot table and ran the cmd: php artisan generate:pivot contractor work...

0 Likes
1 Replies

Eloquent Concatencator

Hey guys, just working on a small package that extends the Eloquent Model class and Query Builder cl...

0 Likes
0 Replies

Show binded sql

Hi; How can I see binded sql? $data = Admin::whereRaw('email = ? ', array($email))->get();

0 Likes
1 Replies

Set the default carbon date format

Hi I'm writing a small app and I am trying to set the default Carbon date format. I have an eloquent...

0 Likes
3 Replies

Foreign key columns without the '_id' suffix

I prefer using foreign key columns wihout any suffix (like 'user' rather than 'user_id'). I can live...

0 Likes
0 Replies

get column name when updated a record

hi everyone according to the question, i want to get column name when update a record. i need this i...

0 Likes
0 Replies

Insert Ignore

I'm looking for the best approach to add an InsertIgnore method to Laravel's query builder. I can ac...

0 Likes
0 Replies

Relationship for match schedules table

Hy all, I'm quite a beginner with Laravel and trying to build a website for the world cup 2014 in Br...

0 Likes
1 Replies
posted 10 years ago

Observing relationship syncing

Hi all, Is it possible to create an observable sync. I am using model::observe to log changes to mo...

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