Skip to content

Laravel Specific Table Migration

How to migrate a specific table?

php artisan migrate:refresh --path=/database/migrations/Filename.php

you should add the path to your migration file to refresh just this table and run

Register a user in Laravel manually

php artisan tinker

Adding a new user to user table with the model User().

$user = new App\User();
$user->password = Hash::make('password');
$user->email = '';
$user->name = 'Name';