Support the ongoing development of Laravel.io →

4,603 Threads

Error with Query\Builder::getMorphClass(), can't understand why

I have a Lavavel 4.1.31 application that serves me an error I can't really understand why is happeni...

0 Likes
0 Replies

How to perform this complex SQL request in Laravel

Hi all, I want to perform this complex request in Laravel 4.2 : SELECT i.serial, z.name, count(im.da...

0 Likes
8 Replies

Problem with Eloquent 'orWhere' clause

Hi guys, I'm having difficulties working with the query builder syntax. I'm trying to convert this...

0 Likes
1 Replies
Solved

Seed did not work but migrate work perfectly

Hi friends, I try to make a modular Laravel application. I use "https://github.com/bstrahija/la...

0 Likes
5 Replies

Need to create a override table function?

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

0 Likes
1 Replies

eloquent - set value from sql select query

How can I do the following using eloquent? INSERT INTO table (column) VALUES (select max(id) from ta...

0 Likes
1 Replies

Access denied error when running 'php artisan migrate', using remote mysql db.

Hi, I'm trying to execute: % php artisan migrate and I get the following error: [PDOException] SQLST...

0 Likes
0 Replies

Eloquent model events not firing when using relations?

I have a typical event hook for soft deleting children: public static function boot() { parent::boo...

0 Likes
1 Replies

Database design with different users

#Dear people and cats. Do anyone have a smart idea of how to design a user table with different user...

0 Likes
2 Replies

Nested relationships when parent is a many-to-many relationship

Hi, I have these three models: Building (table: buildings) Object (table: objects) BuildingType (tab...

quyle92 liked this thread

1 Likes
21 Replies
Solved

Mysql silently fails when updating relations using sync()

I am posting arrays of related field ids using the product id as the key, to my controller: $input...

0 Likes
1 Replies
Solved

Advice on crating database properties

Hi guys, This question might be more of a generic database design question, but I'm using it for a L...

0 Likes
2 Replies
posted 10 years ago

Stuck adding something to existing Laravel web app

At a computer repair shop we are using a Laravel web application to manage our repairs, customers, t...

0 Likes
26 Replies
posted 10 years ago

How to get the next highest value in database?

Hi! Assuming that I have this score column in my database; 41 41 45 48 50 I have a $number variable...

0 Likes
4 Replies

multi level eloquent relations

I'm getting super confused with this small part time project I am working on. I have a Movie model,...

0 Likes
3 Replies

Laravel multi image upload with Ajax

Is there any resources/tutorial on How to upload multiple images using ajax? I have found jq lib: ht...

0 Likes
2 Replies

paginate bug

Hello, guys! Help me please, sorry for my english :) I have bug with paginate, example: $products =...

0 Likes
2 Replies

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

Lavarel Post Array Data İnsert Db

Hİ, ******Var_dump Post array(2) { ["lang"]=> array(2) { [0]=> string(2) "en&qu...

0 Likes
5 Replies
Solved

Error during upload project on web server

I have created laravel project on my local server. Now I have uploaded my project on web server. I h...

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.