`I'm kind of new to laravel, I have a project that I made modular using nWidart/laravel-modules. I need to use the same module in more than one proje ...
`I'm kind of new to laravel, I have a project that I made modular using nWidart/laravel-modules. I need to use the same module in more than one proje ...
I want to access the new Post's User without making an additional query to the database. It queries the database for the User if I do the following: ...
maybe someone know how to insert pivot table in Laravel 8 automatically every i insert counselings table? I have Model Counseling n to n Problem, In ...
I want to have the same mechanism like this https://www.w3schools.com/html/default.asp but in laravel application This is my code on routes/web.php ...
I will try to simplify the problem as much as I can. I want to disable a relation load from a trait on a resource that happens at the retrieved event ...
I am trying to get all the products with active prices and display them and the active price using a scope in the ProductPrices Model. My Products Mod ...
In my case, I have three tables: type id type reason_id reason id reason permission id type_ ...
Hello I am working with Laravel, I have to create two simple models, let's say Stores and Books. Stores can have one or multiple Books and Books can b ...
The SQL query which I am converting is this. I have tried to convert it using query builder in the following manner : Now when I am running this ...
How can I convert the following SQL query to Laravel: This query is just an example query. I know that Laravel has a whereIn function for subquerie ...
I have a bookings table that has a check_in and check_out columns in addition to deposit and balance columns. The check_in and check_out are date colu ...
I'm working in one of my Laravel 8 projects and need to parse dates of my returned query for formatting with my graph. My query, which returns around ...
https://laravel.com/docs/9.x/eloquent#refreshing-models If you already have an instance of an Eloquent model that was retrieved from the database, ...
I'm working in a Laravel 9 project and need to show only records where the deeply nested relationship has records, in my case, tiers. My relationship ...
I want to create a new user by calling create method like this: User::create([ 'phone_number' => '09121231212', 'country_code' => ...
I'm working on a Laravel 9 project. I have a model called PingtreeGroup that I need to get all associated Pingtree models through my PingtreeEntry mod ...
Basically i want to assign different different APP_KEY to different different user i have stored generated app_key in "users table" so, my question is ...
I am trying to get search results where atleast 2 or 3 keywords match in keywords array. Example Table Name Categories K ...
Hello Laravel Developers, I have been using the following Pagination Helper to modify the built-in pagination method, but unfortunately this doesn't ...
I'm just learning laravel. I want update key / value in database with laravel api but not work. My products model is one to many with ProductMeta and ...