Support the ongoing development of Laravel.io →
alimccutchion

alimccutchion

Joined 12 Oct 2014

Statistics

Threads 6
Replies 20
Solutions 2
Articles 0

Can you use php code like this inside a blade @extends method?

Can you use php code like this inside a blade @extends method? I don't think this code works please...

0 Likes
0 Replies

How do I do a conditional check of a value from an array to decide the layout?

How do I do a conditional check of a value from an array to decide the layout? This is the error I g...

0 Likes
4 Replies

Need to create a override table function?

Illuminate \ Database \ QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'suppl...

0 Likes
1 Replies

QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'

Illuminate \ Database \ QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' i...

0 Likes
2 Replies
Solved

Eloquent will also assume that each table has a primary key column named id

Eloquent will also assume that each table has a primary key column named id. So I change it like thi...

0 Likes
4 Replies
Solved
replied 11 years ago

QueryException SQLSTATE[42S22]: Column not found: 1054 Unknown column 'id' in 'where clause'

I needed to override the save method. Problem solved! Note if you have insert and update functions t...

0 Likes
Solved
replied 11 years ago

Eloquent will also assume that each table has a primary key column named id

Thank you ever so much TerrePorter!!! It works!!! $nerd = User::GetByTestID($supplierid)->first(...

0 Likes
replied 11 years ago

How to perform this complex SQL request in Laravel

$results = DB::select('select * COMPLICATED QUERY = ?');

0 Likes
replied 11 years ago

Eloquent will also assume that each table has a primary key column named id

How do I override the find method in the show function? static function show($supplierid) { // ge...

0 Likes
replied 11 years ago

laravel mysql every table derived must have an alias

This is the solution $results = DB::select('select * COMPLICATED QUERY = ?'); http://laravel.io/fo...

0 Likes
Solved

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.

© 2026 Laravel.io - All rights reserved.