Support the ongoing development of Laravel.io →

4,311 Threads

Creating Eloquent Models when having Types and Subtypes (SuperType/Subtype)

I have this database schemathat can be found here I have users that can be either a Business or a P...

0 Likes
1 Replies

Not able to Insert all Input value in Database.

The Problem is Here That only First value inserted in database not all . I want to save all Values i...

0 Likes
5 Replies
Solved
posted 9 years ago

Query to check if field value length > 10

How do i check whether a particular field value has a length of 10 or not in eloquent query

0 Likes
3 Replies

Create a laravel slug system for api urls generated by Laravel API/Scaffold/CRUD Generator (Laravel5.1)

I have used this generator to create my api. It gives me urls like this.. https://github.com/mitulgo...

0 Likes
0 Replies
posted 9 years ago

[Laravel 5] Eloquent relationships returning class not found

I'm developing a new laravel 5 application and I'm using eloquent relationships for the first time....

0 Likes
6 Replies
Solved

How do I copy a model and its many children efficiently?

Hello, I need to copy a parent model and its children and its children's children. I don't want to d...

0 Likes
21 Replies

Automatically append query to model

Hi, everybody. I have a model named User which contains many groups, to retrieve all students, I can...

0 Likes
4 Replies
Solved

Is It such a bad thing to use Models?

Hello I have a tendency to follow the MVC pattern. With laravel im noticing not much of the Model.....

0 Likes
3 Replies
Solved
posted 9 years ago

Dynamic Tablenames with the hasOne method

I have a table of payments (with a postcode field); class Headquarters_Pay_Data extends Model {...

0 Likes
1 Replies

Many to many through

Hello, so, i have the following problem: https://gyazo.com/7bc0b7bb981eb7b49ebc67a4825fe8c6 I have a...

0 Likes
0 Replies

How to use ACL in laravel 5

Hello Everyone. I am new to laravel 5. I want to know how to implement ACL in laravel 5 using databa...

0 Likes
0 Replies

[HELP] L5.1 Raw query of a MySQL stored procedure - Pagination?

I have this query: $images = DB::select('call spMultimedia(' . $id . ')'); I need pagination for th...

0 Likes
0 Replies

eloquent eager loading to limit for each post

ok I have posts table and foreach post we have comments. I want to get the last 10 posts with it's c...

0 Likes
2 Replies

Consolidate All Migrations File in On File

Hi, I have now lots of migrations files, is it posible to put them all in on big file, or there is a...

0 Likes
5 Replies
posted 9 years ago

Filtering with models

Hello everyone, I have models 'Phone' and 'Product'. Phone 'has' Products. I have a page where i fil...

0 Likes
8 Replies

[HELP] Query a list by month

I have a table lets say "events" and a field date inside that table that the user defines....

0 Likes
1 Replies

Eloquent relationship returning an empty collection

I have 2 models Crew and Event with the corresponding tables crews and events. Crews have many even...

0 Likes
3 Replies
Solved
posted 9 years ago

[STARTER HELP] - Eloquent class in construct empty in function!

Hello everyone, i'm learning laravel and i got this problem! Constructor: class PlayerController ext...

0 Likes
1 Replies
Solved

Deep saving Models

I come from a CakePHP background which has the idea of deep saving models. For example, a Person can...

0 Likes
1 Replies

Creating dropdown with optgroup from Laravel class

So this is what I've got so far. But as you'd expect, it's only filling the array with the first sub...

0 Likes
1 Replies
Solved

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.