'admin'], function () { Route::resource('/program/program', 'Relawan\Program\Http\Controllers\ProgramAdminController'); }); // User routes for program Route::group(['prefix' => 'user'], function () { Route::resource('/program/program', 'Relawan\Program\Http\Controllers\ProgramUserController'); }); // Public routes for program Route::get('program/program', 'Relawan\Program\Http\Controllers\ProgramPublicController@index'); Route::get('program/program/{slug?}', 'Relawan\Program\Http\Controllers\ProgramPublicController@show'); Route::group(['prefix' => 'admin'], function () { Route::resource('/program/pilar', 'Relawan\Program\Http\Controllers\PilarAdminController'); }); // User routes for pilar Route::group(['prefix' => 'user'], function () { Route::resource('/program/pilar', 'Relawan\Program\Http\Controllers\PilarUserController'); }); // Public routes for pilar Route::get('program/pilar', 'Relawan\Program\Http\Controllers\PilarPublicController@index'); Route::get('program/pilar/{slug?}', 'Relawan\Program\Http\Controllers\PilarPublicController@show');