Database Migrations in Laravel are the way to create and alter database schema.
I can't figure out how to add a new column to my existing database table using the Laravel framework. I …
php laravel laravel-4 laravel-migrationsI created a migration with unsigned user_id. How can I edit user_id in a new migration to also …
laravel laravel-5 eloquent nullable laravel-migrationsI am trying to create mysql tables in Laravel 5. I created a file in /project/database/migrations called users.php: [...] …
php laravel laravel-5 laravel-artisan laravel-migrationsI've just started with Laravel and I get the following error: Unknown column 'updated_at' insert into gebruikers (naam, wachtwoord, …
php mysql laravel laravel-migrationsCan't figure out how to set proper onDelete constraint on a table in Laravel. (I'm working with SqLite) $table->...…
php laravel laravel-migrationsI need to change with migration column type of $table->string('text'); to a text type, I have tried …
laravel laravel-migrationsI am using Laravel 5 and getting the following exception: PDOException (1044) SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database …
laravel laravel-5 database-migration laravel-migrationsI have a migration that has the timestamps() method, and then I have a seed to seed this table. Schema::…
php laravel eloquent laravel-migrations laravel-seedingI kept getting this while run php artisan migrate SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'email'; check that …
php laravel laravel-5 laravel-migrationsThis is my current code. public function up() { Schema::table('render', function (Blueprint $table) { $table->boolean('displayed')->…
laravel laravel-migrations