How to get multiple parameters from url as wildcard in laravel

Posted 2 years ago by anonymox

'm trying to get multiple parameters from url and send them to view but what I get is undefined variable. how to fix this :


Route::get('adwidth/{width}/adheight/{height}/aduser/{user_id}', function(){
    return view('frame', compact('width','height','user_id'));


    <h3>{{ $width }}</h3>

I'm using laravel 5.3

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

Reply to

Use Markdown with GitHub-flavored code blocks.