Support the ongoing development of Laravel.io →

4,302 Threads

3 level cascading dropdown list in Laravel 5.2

I am trying to do a 3 levels dynamic or dependent dropdown list. i managed to fix the first two and...

0 Likes
0 Replies
posted 7 years ago

foreign keys, how to use it with fresh migrations?

Hi, What is the idea on setting up migrations with foreign keys as a fresh setup? so my idea is to b...

0 Likes
5 Replies
Solved

How to pass data to json from Database?

Hello, Here is my Row Query to get the data from database. $user = DB::table('users')->get(); I w...

0 Likes
7 Replies
Solved
posted 7 years ago

string as foreign key laravel migration not working?

Hi, When i make a migration with a string as foreign key, it don't work, but with an int its working...

0 Likes
1 Replies
Solved

View Data Filter Not Working

Hi Gaes I encountered a problem where I want to show data by year If the variable $ year I return th...

0 Likes
0 Replies

How to get child objects belonging to parent

I have a method that returns all the current user's blogs. User hasMany Blogs and Blog belongsTo Use...

0 Likes
2 Replies
Solved

Help with query

Hello, could somebody kick me into right direction how to build this kind of query in eloquent: SET...

0 Likes
0 Replies
posted 7 years ago

Laravel Eloquent eager load problem

In my blog application there users can post articles and comments on there. When I go to any user pr...

0 Likes
1 Replies

How do I use chunk to insert large amounts of data into database?

I would like to insert a large number of rows into my database using chunks, but I am not sure I am...

0 Likes
2 Replies
Solved

How to move all models in separate folder in laravel 5.2

Greeting to everybody, I'm building a pretty big and complex application in laravel 5.2. it's going...

0 Likes
2 Replies
posted 7 years ago

How to get "base" Eloquent query builder

I'm writing something that is performing an eloquent query on a model called Enquiry. The actual que...

0 Likes
2 Replies
Solved

Create join without "ON" clause

Hi Guys...i need some help...i need to implement something like this... select * FROM matchscore_pr...

0 Likes
2 Replies

database, model, eloquent convention

hi, I'm started to use Laravel and have a question about the underscore convention when creating tab...

0 Likes
4 Replies

Gate policy for attaching a role to a user

Hi, I have a question regarding system design of a REST API. I have users and roles and want to atta...

0 Likes
1 Replies

Optional eager loading

Hi guys, Is it possible in Laravel/Eloquent to only eager load a relation when a condition is met? F...

0 Likes
1 Replies

Laravel hasMany() + where() returns where conditions in opposite order

Using the following: return $this->hasMany(Text::class, 'item_id')->where('item_type', 'produc...

0 Likes
1 Replies

new user after ajax validation with laravel

I want to make a record after validation of data sent with ajax. the idea is to run the function Cre...

0 Likes
0 Replies

Custom Fields / EAV

I've a few projects coming up where I'll need to allow users to create custom fields on things like...

0 Likes
3 Replies

Dynamic Relationship with type and id

I have a table to store all emails sended by laravel. I can fire events and store different informat...

0 Likes
0 Replies
posted 7 years ago

changing datetimeformat for all models

this include the base Model class itself, any idea on how to achieve that?

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