for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Illuminate\Database\Migrations\Migration;
use Uccello\Core\Models\Widget;
class RenameRelatedlistWidgetClass extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
$widgets = Widget::where('class', 'Uccello\Core\Widgets\Relatedlist')->get();
foreach ($widgets as $widget) {
$widget->class = 'Uccello\Core\Widgets\RelatedlistWidget';
class
Uccello\Core\Models\Widget
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.
$widget->save();
}
* Reverse the migrations.
public function down()
$widgets = Widget::where('class', 'Uccello\Core\Widgets\RelatedlistWidget')->get();
$widget->class = 'Uccello\Core\Widgets\Relatedlist';
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.