Route::resource('values', 'ValuesController'); Route::resource('charts', 'ChartsController'); Route::resource('chartTypes', 'ChartTypesController'); Route::resource('categories', 'CategoriesController'); Route::resource('subcategories', 'SubcategoriesController'); Route::resource('tags', 'TagsController'); Route::resource('licenses', 'LicensesController'); //Route::resource( 'dataValues', 'DataValuesController' ); Route::bind('entities', function ($value, $route) { return App\Entity::whereId($value)->first(); }); Route::bind('datasources', function ($value, $route) { return App\Datasource::whereId($value)->first(); }); Route::bind('datasets', function ($value, $route) { return App\Dataset::whereId($value)->first(); }); Route::bind('variables', function ($value, $route) { return App\Variable::whereId($value)->first(); }); Route::bind('values', function ($value, $route) { return App\DataValue::whereId($value)->first(); }); Route::bind('charts', function ($value, $route) { return App\Chart::whereId($value)->first(); }); Route::bind('chartTypes', function ($value, $route) { return App\ChartType::whereId($value)->first(); }); Route::bind('categories', function ($value, $route) { return App\DatasetCategory::whereId($value)->first();