v1.5.14 - Added Allow Actions (Registering)
Fixed User Pictures
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class AllowActions extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('allow_actions', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("action")->unique();
|
||||
$table->boolean("allow")->default('1');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('allow_actions');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class AllowActionsSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$allowactiondata = [
|
||||
[
|
||||
'action' => 'Registering'
|
||||
]
|
||||
];
|
||||
|
||||
foreach ($allowactiondata as $data) {
|
||||
$allowaction = new \App\AllowAction();
|
||||
|
||||
$allowaction->action = $data['action'];
|
||||
|
||||
$allowaction->save();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,6 +13,7 @@ class DatabaseSeeder extends Seeder
|
||||
{
|
||||
$this->call(PermissionSeeder::class);
|
||||
$this->call(RoleSeeder::class);
|
||||
$this->call(AllowActionsSeeder::class);
|
||||
$this->call(UserSeeder::class);
|
||||
$this->call(ContactSeeder::class);
|
||||
$this->call(LocationSeeder::class);
|
||||
|
||||
Reference in New Issue
Block a user