Support the ongoing development of Laravel.io →

4,311 Threads

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

How can find a key on a other model and insert on a query for store method

Hi friends, I have a form, with selectbox for employees, so select the id, well on my table users I...

0 Likes
2 Replies

Why the same query works at different servers on a miscellaneous?

Tell me please. Why on the local server this query: $pricelists = PriceList:: all ()-> where ('ca...

0 Likes
4 Replies

DB.. Many to Many with information (user messages)

My Db schema looks like this.. (omitting some info) users (id, first_name,.....) messages (id, user_...

0 Likes
1 Replies

How can get data from belongsToMany and send the relation array as objecto to view

Thanks folks for your attention! Employee model with select a column: public function departments()...

0 Likes
6 Replies

Many to many inverse query how?

Let`s take classic documentation example User -> Role public function roles() { return $this->...

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

© 2024 Laravel.io - All rights reserved.