| 123456789101112131415161718192021222324252627282930313233 |
- <?php
- use Illuminate\Support\Facades\Schema;
- use Illuminate\Database\Schema\Blueprint;
- use Illuminate\Database\Migrations\Migration;
- use App\Authority;
- class AddDataAuthorities extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- (new Authority(['name'=>'商品信息','alias_name'=>'商品信息']))->save();
- (new Authority(['name'=>'商品信息-查询','alias_name'=>'商品信息-查询']))->save();
- (new Authority(['name'=>'商品信息-录入','alias_name'=>'商品信息-录入']))->save();
- (new Authority(['name'=>'商品信息-编辑','alias_name'=>'商品信息-编辑']))->save();
- (new Authority(['name'=>'商品信息-删除','alias_name'=>'商品信息-删除']))->save();
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- //
- }
- }
|