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...
I'm using two database connections. One is our data warehouse, one is the mysql database powering th...
Hi everyone, I am developing an application which is a subscription based app. But in my case rather...
As i understand laravel supports the model route binding. I do understand how it works and i find th...
My database structure like this: category: id, name Parents: category_id parent_id id has parent cat...
I don't know how to build an eloquent query for the following: SELECT * FROM table WHERE column1 = v...
Hi everyone. This is a link to a tutorial that shows you how to create a Laravel 5 RESTful API as th...
Hello I've recently had the need of firing events when update() or delete() methods on QueryBuilder...
I'm sure I'm doing something wrong, as this is a bit complex for me... but this worked fine for me f...
I am trying to understand why something works. I have a user model and within it I state that a User...
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