Support the ongoing development of Laravel.io →

4,314 Threads

posted 9 years ago

Cancel Eloquent updating Event in trait

Hi guys, I'm working on one of my sites which should be able to basically have a "multisite&quo...

0 Likes
0 Replies

Changing column name in array after where statement

Ok, so this might be something really stupid to do, and I'm open to idea's, but is it possible to ch...

0 Likes
2 Replies
Solved

List data in a table with two mysql tables

Hi, I have two related tables in the main table have the id from another table but I would rather ge...

0 Likes
1 Replies

Drag and drop sorting with JQuery UI

I'm trying to implement drag and drop sorting using JQuery UI but I'm getting an "Internal serv...

0 Likes
4 Replies

Problems insert in Sybase int columns using Laravel 5.1

I'm having problems to insert values in tables with integer data type columns using Laravel 5.1 and...

0 Likes
0 Replies

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 10 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 10 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

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.

© 2025 Laravel.io - All rights reserved.