How would you call this?

Hello everyone,

I am building a laravel CMS for my own website and I made a dashboard controller, and made custom dashboard routes.
basically the routes are following the “Route::resource” convention.

Example :

<?php
// Dashboard Controller routes

// Please note {type?}, this can be : pages, user, roles, blogs etc.
Route::get('dashboard/{type?}', 'DashboardController@index');

How would you define “{type?}” if I would make a dropdown option in the menu to change “type’s” ?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.