workflow controller

This commit is contained in:
Arno Kaimbacher 2019-02-12 12:21:35 +01:00
parent 6068889e68
commit 7c6654398d
18 changed files with 687 additions and 470 deletions

View file

@ -1,6 +1,8 @@
<?php
namespace App\Providers;
use App\Models\Dataset;
use App\Observers\DatasetObserver;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@ -12,7 +14,7 @@ class AppServiceProvider extends ServiceProvider
*/
public function boot()
{
//
Dataset::observe(DatasetObserver::class);
}
/**
@ -26,9 +28,9 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
$this->app->bind(
'Illuminate\Contracts\Auth\Registrar'
// 'App\Services\Registrar'
);
// $this->app->bind(
// 'Illuminate\Contracts\Auth\Registrar'
// // 'App\Services\Registrar'
// );
}
}

View file

@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use Illuminate\Support\Facades\Gate;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
class AuthServiceProvider extends ServiceProvider
{
/**
* The policy mappings for the application.
*
* @var array
*/
protected $policies = [
'App\Model' => 'App\Policies\ModelPolicy',
];
/**
* Register any authentication / authorization services.
*
* @return void
*/
public function boot()
{
$this->registerPolicies();
//
}
}

View file

@ -69,7 +69,7 @@ class RouteServiceProvider extends ServiceProvider
protected function mapApiRoutes()
{
Route::middleware('api')
->namespace($this->namespace)
->group(base_path('routes/api.php'));
->namespace($this->namespace)
->group(base_path('routes/api.php'));
}
}