I am working on a project that is passed down to me from another person. I have 2 sets of views, which are Quotation and Clients. I also have 2 controllers, which are QuotationController and ClientController. Under the ClientController, there is a create function which is to create new client. I want to be able to create new clients under Quotation View and I have already created a pop up form for admin to fill up. The Quotation View is already linked to QuotationController by default, since I see
action="" under the form tag, which 'store' is the function in QuotationController. How do I link the pop up form from Quotation View to ClientController, which has to create function?
This is the web.php, which is the routes:
<?php Route::get('/', function () { return redirect('admin/'); }); Route::group(['prefix' => 'admin'], function () { Voyager::routes(); Route::get('/update-whmcs-client-list', 'WhmcsClientController@updateWhmcsClientList'); Route::get('/support/projects', 'ProjectController@projectSearch'); Route::post('/quotation/create', 'QuotationController@client'); // Sync Data Route::get('/sync', 'SyncDataController@index'); Route::get('/sync/update', 'SyncDataController@update'); Route::any('/', ['uses' => '\\App\Http\Controllers\Voyager\\VoyagerController@index', 'as' => 'dashboard']); }); // WHMCS Client Paths Route::get('/client', 'WhmcsClientController@index'); Route::get('/invoice', 'WhmcsClientController@test'); Route::post('/admin/payment-verifications', 'WhmcsClientsInvoiceController@payment_verification'); Route::get('/admin/recurring-invoice/convert/{id}', 'RecurringInvoiceController@convert'); https://stackoverflow.com/questions/65622467/how-to-link-a-form-in-view-to-another-controller January 08, 2021 at 10:05AM
没有评论:
发表评论