Im trying to add fields to the Users model that is based around Sentry 2 for Laravel 4.
I want to do it properly with migrations.
Is there a way to simply add to the sentry 2 migrations? or should i simply make my own migrations and add the required extra fields?
any guidance with the framework would be awesome!
If you want add some fields you need this:
php artisan migrate --package=cartalyst/sentry
php artisan migrate:make --table=users
Schema::table('users', function(Blueprint $table)
{
$table->string('new_field');
});
Check this example is extending Sentry Model and full implementation example check this: Laravel 4 Backend and simple web site
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With