Hellow guys, so I have 2 tables is Listings is Users in Listings I have some columns, one is user_id, and is related to users tables. I want to display the user
As part of a standard laravel application with a vuejs and axios front-end, when I try to save an ISO8601 value to the action_at field, I get an exception. clas
Noob question (sorry in advance if it's dumb) but I'm honestly trying to understand it all. I'm new to Laravel and still finding my way around. I'm using Larave
I have this function that permit to save in 4 tables. I have an error at that line $stade->save() ( it's normal it's a test ) so it should not save the club
I'm trying to create a simple filter system with a search box, service, category and a way to sort the items in my laravel controller. However, I am getting an
I've been looking around for a fix but couldn't find it. The situation: Resources are connected to an Event, multiple resources can be connected to multiple eve
How to make a orm query with a string User class User extends Authenticatable { use HasApiTokens, HasFactory, Notifiable, SoftDeletes, HasRoles; public
I'm trying to delete the records from my database table that are older than 30 days. I haven't executed the code because I wanted to check if I'm doing it right
Use identifier is used when we want to send some outer environment variables inside closures so I have a scenario. $invoiceList = UserInvoice::where('user_id',
I am trying to change Laravel Jetstream's logic in order to join a default team at registration rather than create a personal team. I found the method that does
I want to hide the columns password & OTP ,that is included in $uses result. Actually these 2 columns are part of the users table. I've tried like below. B
I am using Laravel 8 and I want to display list of event by joining tables that have many to many relationship. Here is how my tables look: Users Table | id |
I'm using ORM Eloquent and I need to filter all models using a date interval and an own property of the model. The raw SQL would be: SELECT * FROM model WHERE s
In laravel Many to Many relationship like the one in the Laravel Documentation example. https://laravel.com/docs/9.x/eloquent-relationships#many-to-many users
I have a form that is supposed to submit order details to the orders table through a custom select element (headlessUI Combobox). The element works fine but I c
I use multiple database connections in my app, one SQLServ, and another MySQL. I want to debug every query from both servers sequentially. therefore rather usin
I have the User model which define the following attribute: public function getAvatarUrlAttribute() { return 'https://i.pravatar.cc/300?u=' . $this->
I've posted about this three times and hopefully someone will help me with a solution. I have a lot of data in my database that the user has created. Suppose I
I'm trying to sort a post table by a foreign key, and can't figure out how to do it. Hopefully someone can lend me a hand. I can sort by the fields already pres
Is there any way we can use operator or regex as we normally do with the whereIn() clause. I want to use something like this $query->whereIN(name,'like','%te