mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add Nova license
This commit is contained in:
@@ -2,9 +2,9 @@ created:
|
|||||||
- database/factories/CountryFactory.php
|
- database/factories/CountryFactory.php
|
||||||
- database/factories/CityFactory.php
|
- database/factories/CityFactory.php
|
||||||
- database/factories/LecturerFactory.php
|
- database/factories/LecturerFactory.php
|
||||||
- database/migrations/2022_11_29_194626_create_countries_table.php
|
- database/migrations/2022_11_29_195043_create_countries_table.php
|
||||||
- database/migrations/2022_11_29_194627_create_cities_table.php
|
- database/migrations/2022_11_29_195044_create_cities_table.php
|
||||||
- database/migrations/2022_11_29_194628_create_lecturers_table.php
|
- database/migrations/2022_11_29_195045_create_lecturers_table.php
|
||||||
- app/Models/Country.php
|
- app/Models/Country.php
|
||||||
- app/Models/City.php
|
- app/Models/City.php
|
||||||
- app/Models/Lecturer.php
|
- app/Models/Lecturer.php
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -10,7 +10,6 @@
|
|||||||
.phpunit.result.cache
|
.phpunit.result.cache
|
||||||
Homestead.json
|
Homestead.json
|
||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
auth.json
|
|
||||||
npm-debug.log
|
npm-debug.log
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
/.fleet
|
/.fleet
|
||||||
|
|||||||
@@ -10,17 +10,28 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Bootstrap any application services.
|
* Bootstrap any application services.
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
parent::boot();
|
parent::boot();
|
||||||
|
// login with user id 1, if we are in local environment
|
||||||
|
if (app()->environment('local')) {
|
||||||
|
auth()->loginUsingId(1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the tools that should be listed in the Nova sidebar.
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public function tools()
|
||||||
|
{
|
||||||
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the Nova routes.
|
* Register the Nova routes.
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function routes()
|
protected function routes()
|
||||||
@@ -31,11 +42,18 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
->register();
|
->register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register any application services.
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function register()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register the Nova gate.
|
* Register the Nova gate.
|
||||||
*
|
|
||||||
* This gate determines who can access Nova in non-local environments.
|
* This gate determines who can access Nova in non-local environments.
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function gate()
|
protected function gate()
|
||||||
@@ -49,7 +67,6 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the dashboards that should be listed in the Nova sidebar.
|
* Get the dashboards that should be listed in the Nova sidebar.
|
||||||
*
|
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function dashboards()
|
protected function dashboards()
|
||||||
@@ -58,24 +75,4 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
|||||||
new \App\Nova\Dashboards\Main,
|
new \App\Nova\Dashboards\Main,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the tools that should be listed in the Nova sidebar.
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function tools()
|
|
||||||
{
|
|
||||||
return [];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Register any application services.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function register()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user