I have migrate like this
public function up()
{
Schema::create('permissions', function ($table) {
$table->increments('id');
$table->tinyInteger('value');
$table->string('name', 50);
$table->timestamps();
$table->integer('techniciansgroup_id')->nullable()->unsigned();
$table->foreign('techniciansgroup_id')->references('id')->on('techniciansgroups')->onDelete('cascade');
});
}
public function down()
{
Schema::drop('permissions');
}
When i use this command
php artisan migrate
The database create correctly
but when i use rollback command
php artisan migrate:rollback
show this error
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Permissions' not found
model
for this table? – smartrahat