Support the ongoing development of Laravel.io →

4,301 Threads

Easy way, package?, for patching migrations?

Hi, Is there an easy way to do updates to existing tables? Something that would be run when a table...

0 Likes
1 Replies

Return no of correct answers

Hi, I'am new to Laravel, I'am trying to develop Multiple Choice Question Application, I need to get...

0 Likes
2 Replies
Solved

[5.2] - Using a custom connection in your models

So I have a command that creates a database connection on the fly like so: protected function creat...

0 Likes
1 Replies

how to save array of json Laravel Vue

I posted this question on Laracast forum.However,I have not got a solution,so please excuse me to po...

0 Likes
1 Replies
posted 7 years ago

Model events not firing

Greetings... I am updating some models in this fashion: Foo::where('name', '=', 'bar')->update(['...

0 Likes
3 Replies
Solved

Laravel recursive tree to flat

I created simple recursive relationship: public function children() { $children = $this->hasMany(...

0 Likes
4 Replies

recursive function many-to-many self referencing model

I have a model called Product that has the following self referencing many-to-many relation: // pare...

0 Likes
0 Replies

display related object in blade ( dinamicly )

the solution must be simple but i cant see it Iam passing an array to the view, whit all the fields...

0 Likes
0 Replies

Linking two tables to a master table of data. Two foreign keys?

I have a real estate site with a master table of listings. Each listing belongs in one subdivision...

0 Likes
1 Replies

order by related table while using with()

Hi, i have the following code for listing, sorting and filtering products. $query = Products::query...

0 Likes
0 Replies
posted 7 years ago

Unable to detect application namespace.

php artisan make:model events [RuntimeException] Unable to detect application namespace.

0 Likes
0 Replies

Multiple relathionship row reading

Hello everybody, I ma using laravel 5.2 and i have 3 tables users, visits, visits_time, i have relat...

0 Likes
0 Replies

Insert record into database fails Not a fillable problem.

My inserts are not inserting. I made a save method in the model so I could put in some debugging. He...

0 Likes
0 Replies

oneToMany with a relation table.

Some one has a hint how to make a oneToMany relation with a relation table? I have 2 tables having f...

0 Likes
0 Replies
posted 7 years ago

last states

hi to all, i have 2 table one called mission +----+-----------+ | id | name | +----+----------...

0 Likes
0 Replies

Paginating Results with Dynamic Query Builder Filters

I found this tutorial on creating dynamic filters for query builder, allowing me to quickly run thro...

0 Likes
3 Replies
Solved

get custom model attribute not working

Model class Domain extends Model { protected $guarded = []; public function clients() { return $th...

0 Likes
1 Replies

Eloquent returns unused values

print_r(User:all()); This prints a lot of fields which are of no use to me like [hidden:protected] =...

0 Likes
1 Replies

Cycle dependecies

Hello, i have general question. How do Eloquent solves cycle dependencies on the tables? Does it at...

0 Likes
1 Replies

Translating a sql query so that can be accepted in laravel

I have this sql query, but I have no idea how to sort of write it Raw so that it can be put into my...

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