Tell me please. Why on the local server this query: $pricelists = PriceList:: all ()-> where ('ca...
My Db schema looks like this.. (omitting some info) users (id, first_name,.....) messages (id, user_...
Thanks folks for your attention! Employee model with select a column: public function departments()...
Let`s take classic documentation example User -> Role public function roles() { return $this->...
$employee=Employee::create([ 'name' => $request->get('name'), 'lastname' => $request-...
Hi, I have two tables; Table user and table user_groups. I'm using soft delete to delete users. When...
I am trying to do a belongsToMany relationship but it always returns null. These are my models. (piv...
I am struggling with something and I really need some help The web application I am putting it toget...
So I have this odd problem with json. It will return different jsons depending on my underlying syst...
I have laravel models : Post and Comment. As normal, post will have many comment tables as bellow: P...
How can I compare properties of multiple collections. I have the following code. $games = Schedule::...
So I've been following https://laracasts.com/series/laravel-5-from-scratch/episodes/8 and I've got t...
And if it is not possible how can I create map with accessor values?
Hello, I'm familiar with many-to-many polymorphic relations explain here: http://laravel.com/docs/5....
I have a model A which has a parent/child relation with itself through a pivot table AHasA. Model A...
Has anybody worked with eloquent/postgres and the json/jsonb datatype? I've fleshed out some basic c...
Hi everyone. I'm not sure if it's possible but here is my question: How to get all my clients with t...
I am new to Laravel/OOP and am trying to reproduce a legacy site where there is a back button with v...
Hi guys! I've got two models - Parent and Child with one to many relationship. I'm saving a new chil...
Hello, I have an app that should list points with its exchange rates. Basically, there are 2 main ta...
Solutions given in the past year. Excluding solutions from thread authors.
The Laravel portal for problem solving, knowledge sharing and community building.
The community