Compare commits
3 Commits
b5b7967eb7
...
dda6143f8a
| Author | SHA1 | Date | |
|---|---|---|---|
| dda6143f8a | |||
| 52d0e89a35 | |||
| 24a1b0e8cf |
@@ -9,6 +9,8 @@ class Aircraft extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.fleet.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class AircraftManufacturer extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.fleet.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class AircraftType extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.fleet.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ class AircraftTypeGroup extends Controller
|
|||||||
public $listConfig = 'config_list.yaml';
|
public $listConfig = 'config_list.yaml';
|
||||||
public $formConfig = 'config_form.yaml';
|
public $formConfig = 'config_form.yaml';
|
||||||
|
|
||||||
|
public $requiredPermissions = ['germanairlinesva.fleet.master'];
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
|
|||||||
+2
-2
@@ -10,7 +10,7 @@ navigation:
|
|||||||
url: /
|
url: /
|
||||||
icon: icon-plane
|
icon: icon-plane
|
||||||
permissions:
|
permissions:
|
||||||
- fleet
|
- germanairlinesva.fleet.master
|
||||||
sideMenu:
|
sideMenu:
|
||||||
side-menu-item:
|
side-menu-item:
|
||||||
label: 'germanairlinesva.fleet::lang.menu.groups'
|
label: 'germanairlinesva.fleet::lang.menu.groups'
|
||||||
@@ -29,6 +29,6 @@ navigation:
|
|||||||
url: germanairlinesva/fleet/aircraft
|
url: germanairlinesva/fleet/aircraft
|
||||||
icon: icon-plane
|
icon: icon-plane
|
||||||
permissions:
|
permissions:
|
||||||
fleet:
|
germanairlinesva.fleet.master:
|
||||||
tab: 'germanairlinesva.fleet::lang.permissions.tab.fleet'
|
tab: 'germanairlinesva.fleet::lang.permissions.tab.fleet'
|
||||||
label: 'germanairlinesva.fleet::lang.permissions.label.fleet'
|
label: 'germanairlinesva.fleet::lang.permissions.label.fleet'
|
||||||
|
|||||||
@@ -17,18 +17,10 @@ class BuilderTableCreateGermanAirlinesVaFleetAircrafts extends Migration
|
|||||||
->references('id')
|
->references('id')
|
||||||
->on('aircraft_types');
|
->on('aircraft_types');
|
||||||
$table->bigInteger('home_airport_id')->unsigned();
|
$table->bigInteger('home_airport_id')->unsigned();
|
||||||
//$table
|
|
||||||
// ->foreign('home_airport_id')
|
|
||||||
// ->references('id')
|
|
||||||
// ->on('airports');
|
|
||||||
$table
|
$table
|
||||||
->bigInteger('airport_id')
|
->bigInteger('airport_id')
|
||||||
->unsigned()
|
->unsigned()
|
||||||
->nullable();
|
->nullable();
|
||||||
//$table
|
|
||||||
// ->foreign('airport_id')
|
|
||||||
// ->references('id')
|
|
||||||
// ->on('airports');
|
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('registration');
|
$table->string('registration');
|
||||||
$table->boolean('in_use')->default(true);
|
$table->boolean('in_use')->default(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user