/** * Reverse the migrations. * * @return void */ public function down() { DB::transaction(function () { Schema::table('users', function (Blueprint $table) { $table->dropColumn('organization_id'); }); $org = Organization::vendor(); $org && $org->delete(); }); }
public function authorize() { if (!$this->currentUser()->isMemberOf(Organization::vendor())) { return App::abort(404); } }