2016-12-06 21 views

答えて

0

を使用してい

api.php

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

frame.blade.php

@section('content') 
    <h3>{{ $width }}</h3> 
@stop 

:この問題を解決する方法ソリューション私はこれらのパラメータを以下のように私のクロージャに渡さなければならなかった:

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

助けが必要です。こちらをご覧ください:http://stackoverflow.com/questions/41030097/how-to-add-some-textfield-in-form-register-laravel-generator-infyom –

関連する問題