How do i Select all records from one model that do not exist in another model in Laravel ? So far he...
In api.php Route::get('/abc', 'App\UserController@abc'); In UserController.php public function abc(...
I am trying to create an workplace check in and checkout system for workers but i want to allow a us...
I am trying to get recent comments. Using the below works. $recentcomment = Comment::latest(); how...
Am new to laravel (total greenhorn), it would be awesome if anyone can help me with this. I have a m...
I need to make a function witch can be called in a foreach loop such has : foreach($users as $user){...
I am trying to retrieve a specific attribute from a one to many relationship using "with"....
RouteBinder is a package designed to help you with clean model validation when using Laravel route b...
Hello There, I have a morphTo between two tables Courses and Workshops and the Pivot Table is Regist...
It has the following tables: companies, addresses and company_address. I want to remove a record fro...
Can someone let me know the difference between Myclass::insert() vs Myclass::create()?
we are trying to log the changes made to the models via ORM laravel 5. There are default events whic...
https://laravel.com/docs/5.8/eloquent-relationships#defining-custom-intermediate-table-models Why wo...
https://laravel.io/forum/anyone-using-athena-with-laravel-5 I couldn't find reply button on this thr...
Controller: $indirizzo = DB::table('indirizzoimpiantos')->where('id_impianto', $dettagliimpianto[...
Hi all. I have 3 tables in Laravel: doctors, clinics and clinic_doctors. Doctors have relation: publ...
Hi all. I just deploy my laravel app using docker container on my GCP instance. I can run the migrat...
I have a query that I was previously calling with Quote::with(['detail.orders'])->findOrFail($id)...
Hello , I'd hoped you could help me make what I already have a little cleaner. The goal: Show a Vide...
Hi everybody! My team and I wanted to know if this is the normal way Eloquent relationships handle s...
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