for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Support\Facades\Artisan;
use Uccello\Core\Database\Migrations\Migration;
use Uccello\Core\Models\Displaytype;
class AddDisplaytypes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
$displaytypes = [
'create_detail' => 'Uccello\Core\Fields\Displaytype\CreateDetail',
'list_only' => 'Uccello\Core\Fields\Displaytype\ListOnly',
];
foreach ($displaytypes as $name => $class) {
$displaytype = new Displaytype();
$displaytype->name = $name;
name
Uccello\Core\Models\Displaytype
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.
$displaytype->class = $class;
class
$displaytype->save();
}
Artisan::call('cache:clear');
* Reverse the migrations.
public function down()
Displaytype::where('name', 'create_detail')
->orWhere('name', 'list_only')
->delete();
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.