Support the ongoing development of Laravel.io →

4,314 Threads

Laravel4 many-to-one relation with a pivot table

I have 3 tables in my database. A link table, a question table and an answer table. In link I store...

0 Likes
0 Replies

Column not found: 1054 Unknown column '_token' in 'field list' (SQL: update `tutorials` set `_token` =

If i update my Form Model Binding i am getting the above error: **Column not found: 1054 Unknown col...

0 Likes
4 Replies
Solved

nested and/or within a dynamic function

I'm trying to get nested results but can't seem to get it working for my situation. I want to use th...

0 Likes
1 Replies
posted 9 years ago

Eloquent save() not working after switching from MyISAM to InnoDB

I'm using Laravel 4.2. I have just converted all tables of MySQL database from MyISAM to InnoDB by i...

0 Likes
2 Replies

insert multiple rows / new to laravel

I'm very new to laravel. Just getting around the MVC idea. How would I go about writing in laravel s...

0 Likes
1 Replies
posted 10 years ago

Generating pivot tables in Laravel 5

Hi everyone, New to Laravel and hitting the ground running with fresh Laravel 5 stuff. Just stuck on...

0 Likes
3 Replies

Insert Multiple rows?

Hopefully someone here can help me with this, I'm kinda stuck here... I have a form looks like this:...

0 Likes
1 Replies

Weird behavior - Sorting collection

I'm trying to sort a collection by the column "name". I am logging the ajax result and whe...

0 Likes
1 Replies
Solved

Custom toArray method on Eloquent model

Hi, I have a Eloquent Model and I want to create a customized toArray method... class Posts extends...

0 Likes
4 Replies
Solved

Route model binding with condition

Helo, I wonder how can I bind a model with condition? in this example: https://iatstuti.net/blog/elo...

0 Likes
3 Replies

Suggestions PLS! Display results using a association table

What am I not understanding? I want to get all the 'industries' associated with a 'project' via an a...

0 Likes
1 Replies

Understanding Mass Assignment

I'm learning Laravel and just need to clarify myself here. If you intend to push all input data to i...

0 Likes
7 Replies
Solved

Controller show($id) function help

When I use a show($id) function called with a wild card route, the resulting view appends a director...

0 Likes
0 Replies

Converting elasticsearch result into Objects

Dear all, I am having an issue to display elasticsearchresult in my view. ElasticSearch returns the...

0 Likes
2 Replies

ModelName::first() returns "No query results for model" even though there's data within the database

Paste: http://laravel.io/bin/9vvxv php artisan tweek Tweet::first() PHP Fatal error: Class 'Twe...

0 Likes
0 Replies

child of child relationship with pivots

Hi everyone Could you please help me to solve my problem I have 3 tables: types belongstoMany catego...

0 Likes
1 Replies

Auth::user not working in laravel

I'm creating a messaging application. User logs in and then his conversations are displayed to him....

0 Likes
2 Replies
posted 9 years ago

BelongsTo - Undefined property (Default of a select field)

I created a form which is used for creating and editing packages, multiple features and a single pac...

0 Likes
3 Replies

2 pagination in one page Laravel4

Hello, i have index page where are 2 tabs. In the contens i loading products and categories with two...

0 Likes
1 Replies

Validation not working

Hello, I'm having trouble with my validation. I'm sending this JSON: { "promotor": {...

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