-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
25 lines (20 loc) · 917 Bytes
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
Route::middleware('web')
->prefix(config('formbuilder.url_path', '/form-builder'))
->namespace('doode\FormBuilder\Controllers')
->name('formbuilder::')
->group(function () {
Route::redirect('/', url(config('formbuilder.url_path', '/form-builder').'/forms'));
//Public form url
Route::get('/form/{identifier}', 'RenderFormController@render')->name('form.render');
Route::post('/form/{identifier}', 'RenderFormController@submit')->name('form.submit');
Route::get('/form/{identifier}/feedback', 'RenderFormController@feedback')->name('form.feedback');
//My submission routes
Route::resource('/my-submissions', 'MySubmissionController');
//Form submission management routes
Route::name('forms.')->prefix('/forms/{fid}')->group(function () {
Route::resource('/submissions', 'SubmissionController');
});
//Form management routes
Route::resource('/forms', 'FormController');
});