how to perform conditional routing

Posted 1 year ago by hidayat3676
function(Request $request){
    if ($request->isMethod(post)){
Route::post('myposts/{id}',       '[email protected]');
Route::post('createpost/{id?}',   '[email protected]');
Route::post('addingpost/{id?}',   '[email protected]');
Route::post('edit',               '[email protected]');
Route::post('updatingPost/{id}',   '[email protected]');
        return view('MyErrorpage');


this give me error Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_PARSE) Parse error: syntax error, unexpected end of file

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.