Support the ongoing development of Laravel.io →

4,314 Threads

Laravel sum problem

Hi, i have two table: LECTURES id name 1 Lesson 1 2 Lesson 2 3 Lesson 3 LECT...

0 Likes
3 Replies
Solved

Change query based on variable from URL

All in the interest of learning Laravel and better coding. This is my controller: public function in...

0 Likes
2 Replies
Solved

RESTful api PUT parameters issues

We're building a restful api which in this case is consumed via an Angular frontend. All works well,...

0 Likes
0 Replies

Transactions in Laravel 5

Hi, I have trouble with a transaction. I want to improve a dashboard view in my applicaton. To do so...

0 Likes
4 Replies

Menu builder (database)

I want to build a menu where the data comes from database but i don't know where to start. the menu...

0 Likes
1 Replies
Solved

Search Function

Hello, I am new here but I am not new to Laravel, however I am still learning and I want to improve....

0 Likes
7 Replies
Solved

How attach after save another model

Hi friends, help me please, how I can do for save InventorEntry model and get the id for attach a pr...

0 Likes
0 Replies

Model does not have "restored" event?!

I am trying to use MyModel::restored event inside MyModel::boot method but Laravel says restored fun...

0 Likes
6 Replies
Solved

restored_at timestamp?

Is it possible to add a restored_at timestamp for restoring soft deleted records?

0 Likes
4 Replies
Solved

"Loading" model event? Need to adjust attributes of unknown names...

Hey Guys, I have been doing some Timezone work on my app. I need the database to be 100% UTC based....

0 Likes
7 Replies
Solved

Eloquent exists

hi, here is my code snippet [code] $data = [ 'categoryId' => 3,...

0 Likes
4 Replies

Defining models in runtime

Hi there, Laravel newbie here. I'm working on some auto CRUD add-on functionality for an already bui...

0 Likes
19 Replies
Solved
posted 9 years ago

Eloquent query for 1 table and 2 pivot tables

Hi, I'm trying to get some data with Eloquent but I'm having some trouble doing so. Allow me to expl...

0 Likes
4 Replies

common variable for migrations

Hi, I am creating migrations for my project and as usual defining string fields and their length als...

0 Likes
4 Replies
Solved

Iterating over Nested Data

I'm trying to upgrade a legacy app and there I basically need to echo out a bunch of hierarchical da...

0 Likes
2 Replies

reusing a partial in multiple places... some problems?

OK so i have a partial that i have been using in several places.. so far it has worked perfectly bec...

0 Likes
2 Replies

laravel error adding a row whilst Testing but not when I do it manually?

So I am using laravel 5 form testing for my register pages which are split into 3 stages doing somet...

0 Likes
0 Replies

Eager loading polymorphic relation with custom fields

Short version I have a basic polymorphic relation between a Note model and many things, including a...

0 Likes
12 Replies
Solved

Why I get Trying to get property of non-object

$products=Product::where('product_name',$request->product_name)->first(); if($products->...

0 Likes
3 Replies

How to update just one field with fill method in the table

How I can fill $a in to the table, pls and regards. $products=Product::where('product_name',$request...

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.

© 2025 Laravel.io - All rights reserved.