Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel pass value to resource controller create

Route::get('payments/create/{id}', [
    'as' => 'payments.create',
    'uses' => 'PaymentsController@create'
]);
Route::resource('payments', 'PaymentsController', ['except' => 'create']);
Source by laracasts.com #
 
PREVIOUS NEXT
Tagged: #laravel #pass #resource #controller #create
ADD COMMENT
Topic
Name
1+4 =