$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...
In my testcase when I try to create a model by factory like the following $factory->defineAs(App\...
Men (parent_id 0) Men 1.2 -- Men 1.3 (2 product) ---- Men 1.4 (1 product) I need to get all items...
I'm trying to override the find method, but for some reason it's stuck in an endless loop. It's the...
I try to make a search engine for users. The search will be with multiple fields so as the user can...
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