Hi, I'm using the Sentry package how can manage this setup
public function setUpDb()
{
Artisan::call('migrate');
}
to run
php artisan migrate --package=cartalyst/sentry
I don't want to put the sentry migrate in my database/migrations In my database migration I've got
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class AddFieldsUsers extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('users', function(Blueprint $table)
{
/* TODO unittest */
$table->string('fullname');
$table->string('username')->unique();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function(Blueprint $table)
{
$table->dropColumn(array('fullname', 'username'));
});
}
}
Artisan::call('migrate', array('--package'=>'cartalyst/sentry'));
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community