for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use Anomaly\Streams\Platform\Database\Migration\Migration;
class AnomalyModuleUsersMakeUsersSearchable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
$this->streams()->findBySlugAndNamespace('users', 'users')->setAttribute('searchable', true)->save();
}
* Reverse the migrations.
public function down()
$this->streams()->findBySlugAndNamespace('users', 'users')->setAttribute('searchable', false)->save();