I'm using Laravel 8 and I wanted to run this code which insert two new columns, if the attribute name does not exist in the returned results of produc ...
I'm using Laravel 8 and I wanted to run this code which insert two new columns, if the attribute name does not exist in the returned results of produc ...
I have a little bit of a chicken and egg problem here. I am building a multitenant app in Laravel where each tenant has their own database on a Postgr ...
I'm trying to store json into a db and load it back I tried to store It stored correctly. I checked the db, it showed correctly. {name: "John" ...
I show code in the screenshot, because I want to show you guys my line 43 The actual code is here : I visit As you can see Laravel Debugbar ...
I'm trying to create foreign keys in Laravel 5.8 and when I migrate my table using Artisan the foreign key not set. In the cities table and provinces ...
I'm using Laravel 5.7 along with SQL Server 2017 and I want to generate a varchar(50) column called name. Executing this code gives me a nvarchar(50 ...
I am trying to create migrations with Laravel but I am in a situation where I need custom column type since the one I want isn't included in schema bu ...
I'm trying to create a table with Laravel migrations but I'm having some trouble. I just need to create a table with a primary pair ('user_id' and 'me ...
How would I set a database auto increment field that is not a primary key on the creation method? The only way is using a raw query? DB::statement(' ...
There a able, called 'interests' which hold the id(s) of 'categories' and/or 'brands' that each user has interest in. To prevent creating two separate ...
I'm working to update an existing database to use autoincremented primary keys. This DB currently has crazy named PK fields with custom values. I need ...
I just created fresh migration. After running it I see my field type not ENUM type. It has a VARCHAR(255) type instead Can somebody tell me what ca ...
I am starting with a self-learning project built on top of Laravel 5.2 and I have found my first issue: self-reference in a migration. This is how th ...
Is there any way to set a maximum value as a default one for an integer field? In other words, I'm looking for a simple and elegant way to replace the ...
I used webpatser/laravel-countries in my controlleer to select country list in my form i got all the country in my schema now i have like thi ...
I'm having a bit of trouble with Laravel Migrations. I've recently stopped developing on C9 and decided to try out Nitrous.io instead - however I'm un ...