Support the ongoing development of Laravel.io →

4,311 Threads

Relationship local key

Can someone explain me why I have to use the local_key in this relationship? My table User have a pr...

0 Likes
0 Replies

How to change join field in hasManyThrough?

I have structure like this: orders id - integer name - string order_details id - intege...

0 Likes
0 Replies

Sorting union query

Hi. i would like to know how do i sort the data from my union query package_data query $query = DB::...

0 Likes
0 Replies

Approximate Dates

I'm trying to port over to Laravel a feature that I built in PHP where a user can enter approximate...

0 Likes
0 Replies

CSV Import Error - unrecognized

I have a project that comprises of various laravel models. Everything has worked fine because I have...

0 Likes
0 Replies
posted 8 years ago

Eloquent, Category and other

Good evening, I made a sketch of what I did: http://i.imgur.com/b7WYg2N.png Now I have to do this:...

0 Likes
1 Replies

Model::where query doesn't work

I have a model called Article with the table 'articles' and in the database there is a 'published' c...

0 Likes
3 Replies

Cronjob 'delete' query doesn't work

Hi Guys, I'm having trouble finishing my cronjob for deleting a existing user if their account has e...

0 Likes
0 Replies

How to work with tabular data

Hi, Does anybody know some good plugins/widgets or just good examples on how to work with tabular da...

0 Likes
0 Replies
posted 8 years ago

Why is the password field in the standard project fillable?

I found that in User.php, the field password is fillable https://github.com/laravel/laravel/blob/mas...

0 Likes
0 Replies
posted 8 years ago

Laravel 5.1 Dynamic Property

I need to show a sum of all row element which has less than or equal row id. Right now I'm using thi...

0 Likes
0 Replies

Laravel 5: easy and comfortable query caching?

Hello! Removing cache manager and Equolent 'remember()' is pain for us :( Is there any other way to...

0 Likes
3 Replies
posted 8 years ago

Eloquent 'WhereNotNull' from a ::with( ) result

Hi, I want to retrieve a list of results from a model, what I am trying is: App\Score::with( array('...

0 Likes
3 Replies

PIVOT TABLE ( Show only the classes where the user is registered )

How can i show the classes only for student who is registered in a class? I have 2 tables and a pivo...

0 Likes
0 Replies

Overriding EloquentUserProvider to change password field name in validateCredentials()

I've managed to change the password field in the code through overriding various classes/methods. Bu...

0 Likes
0 Replies

bdd to table

here is the code I have done I recovered the data from the model and I select BikeLock latitude and...

0 Likes
0 Replies

extended hasManyThrough

So I have the following models : Category, Subcategory, Product, Color. A category has many subcateg...

0 Likes
0 Replies

model event to record history's

i am trying to create an model event to track amendments.. the table structure uses a sequence field...

0 Likes
0 Replies

Understanding laravel 5 Many To Many Polymorphic relationship

I am reading laravel 5.2 docs to implement many to many polymorphic relation in my Laravel Applicati...

0 Likes
2 Replies

Override table prefix for one model

I have prefixes setup for my database: "pmt_" for a couple of tables, i want to override t...

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