v0.5.5 - Added news on the admin panel
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 CreateNewsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('news', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("name");
|
||||
$table->text("content");
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('news');
|
||||
}
|
||||
}
|
||||
@@ -150,6 +150,15 @@ class PermissionSeeder extends Seeder
|
||||
"locations.edit" => "Allows editing of locations",
|
||||
"locations.delete" => "Allows deletion of locations",
|
||||
|
||||
/**
|
||||
* The NEWS specific permissions
|
||||
*/
|
||||
"news.create" => "Create a new location",
|
||||
"news.list" => "Shows all locations",
|
||||
"news.show" => "Shows a specific location",
|
||||
"news.edit" => "Allows editing of locations",
|
||||
"news.delete" => "Allows deletion of locations",
|
||||
|
||||
/**
|
||||
* The ADMIN PANEL specific permissions
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user