-
Notifications
You must be signed in to change notification settings - Fork 56
/
routes.php
35 lines (30 loc) · 979 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
26
27
28
29
30
31
32
33
34
35
<?php
Route::middleware('web')
->prefix(config('formbuilder.url_path', '/form-builder'))
->namespace('jazmy\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');
});