Hi, Is there an easy way to do updates to existing tables? Something that would be run when a table...
Hi, I'am new to Laravel, I'am trying to develop Multiple Choice Question Application, I need to get...
So I have a command that creates a database connection on the fly like so: protected function creat...
I posted this question on Laracast forum.However,I have not got a solution,so please excuse me to po...
Greetings... I am updating some models in this fashion: Foo::where('name', '=', 'bar')->update(['...
I created simple recursive relationship: public function children() { $children = $this->hasMany(...
I have a model called Product that has the following self referencing many-to-many relation: // pare...
the solution must be simple but i cant see it Iam passing an array to the view, whit all the fields...
I have a real estate site with a master table of listings. Each listing belongs in one subdivision...
Hi, i have the following code for listing, sorting and filtering products. $query = Products::query...
php artisan make:model events [RuntimeException] Unable to detect application namespace.
Hello everybody, I ma using laravel 5.2 and i have 3 tables users, visits, visits_time, i have relat...
My inserts are not inserting. I made a save method in the model so I could put in some debugging. He...
Some one has a hint how to make a oneToMany relation with a relation table? I have 2 tables having f...
hi to all, i have 2 table one called mission +----+-----------+ | id | name | +----+----------...
I found this tutorial on creating dynamic filters for query builder, allowing me to quickly run thro...
Model class Domain extends Model { protected $guarded = []; public function clients() { return $th...
print_r(User:all()); This prints a lot of fields which are of no use to me like [hidden:protected] =...
Hello, i have general question. How do Eloquent solves cycle dependencies on the tables? Does it at...
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...
Solutions given in the past year. Excluding solutions from thread authors.
Select a tag below to filter the results
The Laravel portal for problem solving, knowledge sharing and community building.
The community