Support the ongoing development of Laravel.io →

4,311 Threads

mass import to database with relatives

Hi guys. I missunderstand something. I have two tabels: Products (id, sku, brand, name, etc.) publi...

0 Likes
0 Replies

Is it possible to have Eloquent model $fillable attributes conditionally?

For example, you might have a "My Account" section on the frontend for users, and a User E...

0 Likes
2 Replies

Filter Results based on the parent relation

Hi, I'm trying to filter my results based on a field value. Some informations Laravel 5.3 postgres...

0 Likes
0 Replies

Migrations

Hello, i'm new user of laravel and i tried use migrations relationship but it doesn't work. Can you...

0 Likes
1 Replies
Solved

Column not found, using Alias with OrderBy and GroupBy

As the title says, for some reason when using DB::raw and an alias within DB::raw the alias name (fo...

0 Likes
5 Replies

Cashier - Swap() results in subscription resulting in null

Basically I have this problem which keeps occuring. Once a user subscribes, it all works fine. He ca...

0 Likes
0 Replies
posted 10 years ago

How Can I Use User class without namespace like laravel4 in laravel5(develop branch)

laravel4 app/models/User.php not exist namespace so php artisan tinker > (new User); is worked l...

0 Likes
6 Replies
Solved
posted 10 years ago

Naming Conventions for Model Classes

Hey, quick question. Laravel enforces naming conventions on its Models. If you name a Model "Us...

0 Likes
5 Replies
Solved

Where should declare relationship, EloquentUser (Sentinel) or User (Laravel 5.3 Default)?

Hi, im using Sentinel in my project. I am new with laravel, and i need some explanation regarding Se...

0 Likes
0 Replies
posted 7 years ago

Eloquent get all Post except last 3 rows added

I have a slider on the home page with the last 3 rows added here is my code and it's working perfect...

0 Likes
1 Replies

Eloquent hell ...toSQL doesn't show aggregation

Good day: I've been on this for several days and I believe the Eloquent module has unnecessary level...

0 Likes
1 Replies

How can I get the parent without children with child's eloquent model?

How can I get the parent without children with child's eloquent model? Child eloquent: class Product...

0 Likes
1 Replies
posted 7 years ago

Quick Question about 'pluck'

I'm returning a simple list of tag names using 'pluck()' in L5.3 I can foreach over these ok, but if...

0 Likes
3 Replies

mysqli support in laravel

How can use I mysqli database driver in laravel? I gone through the documentation and found that lar...

0 Likes
2 Replies

How to using counter in foreach migration table? (laravel 5.3)

My code is like this : <?php use Illuminate\Database\Seeder; use Illuminate\Database\Eloquent\Mo...

0 Likes
1 Replies
posted 7 years ago

Showing data that belong to logged user.

I having two table, first is Roundtable and second is Table Categories, when user logged they can ch...

0 Likes
0 Replies

Use Alias in SelectRaw

I've this query: $periodo = Input::get("periodo"); $programa = Input::get("programa...

0 Likes
0 Replies
posted 7 years ago

Relationship problem. I want 'Student' to have MANY 'Invoices' and 'Results'

How would I achieve this? I am confused weather to use onetomany, hasmany, belongsto? Help me out.

0 Likes
4 Replies
Solved

Can I catch table names thats currently beeing created by the migration?

Is there a way to catch the table names if I run migration from a controller?

0 Likes
2 Replies

Laravel show array json

I want to show data from database: for every id_grup has many lapangan(court) $groups_resource...

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.