@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | -use Illuminate\Http\Request; |
|
| 6 | - |
|
| 7 | -use App\Http\Requests; |
|
| 8 | 5 | use App\Customer as Customer; |
| 9 | 6 | |
| 10 | 7 | class CustomersController extends Controller |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use App\Customer; |
| 6 | -use Illuminate\Http\Request; |
|
| 7 | - |
|
| 8 | 6 | use App\Http\Requests; |
| 9 | 7 | |
| 10 | 8 | class CustomersController extends Controller |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * Store a newly created resource in storage. |
| 50 | 50 | * |
| 51 | 51 | * @param Requests\DepartmentsValidator $input |
| 52 | - * @return \Illuminate\Http\Response |
|
| 52 | + * @return \Illuminate\Http\RedirectResponse |
|
| 53 | 53 | */ |
| 54 | 54 | public function store(Requests\DepartmentsValidator $input) |
| 55 | 55 | { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | * |
| 87 | 87 | * @param Requests\DepartmentsValidator $input |
| 88 | 88 | * @param int $id the department id in the database. |
| 89 | - * @return \Illuminate\Http\Response |
|
| 89 | + * @return \Illuminate\Http\RedirectResponse |
|
| 90 | 90 | */ |
| 91 | 91 | public function update(Requests\DepartmentsValidator $input, $id) |
| 92 | 92 | { |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * Remove the specified resource from storage. |
| 99 | 99 | * |
| 100 | 100 | * @param int $id the department id in the database. |
| 101 | - * @return \Illuminate\Http\Response |
|
| 101 | + * @return \Illuminate\Http\RedirectResponse |
|
| 102 | 102 | */ |
| 103 | 103 | public function destroy($id) |
| 104 | 104 | { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | namespace App\Http\Controllers; |
| 4 | 4 | |
| 5 | 5 | use App\Customer; |
| 6 | -use Illuminate\Http\Request; |
|
| 7 | - |
|
| 8 | 6 | use App\Http\Requests; |
| 9 | 7 | |
| 10 | 8 | class CustomersController extends Controller |
@@ -25,30 +25,3 @@ |
||
| 25 | 25 | Route::get('/home', 'HomeController@index'); |
| 26 | 26 | |
| 27 | 27 | <<<<<<< HEAD |
| 28 | -Route::get('/callbacks', 'CallbackController@index')->name('callbacks.index'); |
|
| 29 | -Route::get('/callbacks/register', 'CallbackController@register')->name('callbacks.register'); |
|
| 30 | -Route::get('/callbacks/display/{id}', 'CallbackController@edit')->name('callbacks.display'); |
|
| 31 | -Route::post('/callbacks', 'CallbackController@store')->name('callbacks.store'); |
|
| 32 | - |
|
| 33 | -======= |
|
| 34 | -// Costumers routes |
|
| 35 | ->>>>>>> b65ccccd988a46329b5b01893711e0fcc8cb0b01 |
|
| 36 | -Route::get('/customers', 'CustomersController@index')->name('customers.index'); |
|
| 37 | -Route::get('/customers/register', 'CustomersController@register')->name('customers.register'); |
|
| 38 | -Route::get('/customers/display/{id}', 'CustomersController@edit')->name('customers.display'); |
|
| 39 | -Route::post('/customers', 'CustomersController@store')->name('customers.store'); |
|
| 40 | - |
|
| 41 | -// Status routes |
|
| 42 | -Route::get('/status/available', 'StaffController@setAvailable')->name('status.available'); |
|
| 43 | -Route::get('/status/unavailable', 'StaffController@setUnavailable')->name('status.unavailable'); |
|
| 44 | - |
|
| 45 | -// Profile routes |
|
| 46 | -Route::get('/profile', 'StaffController@profile')->name('staff.index'); |
|
| 47 | - |
|
| 48 | -// Staff routes |
|
| 49 | -Route::get('/staff', 'StaffController@index')->name('profile'); |
|
| 50 | -Route::get('/staff/edit/{id}', 'StaffController@edit')->name('staff.edit'); |
|
| 51 | -Route::post('/staff/edit/{id}', 'StaffController@update')->name('staff.update'); |
|
| 52 | -Route::get('/staff/create', 'StaffController@create')->name('staff.create'); |
|
| 53 | -Route::post('/staff/create', 'StaffController@store')->name('staff.store'); |
|
| 54 | -Route::get('/staff/delete/{id}', 'StaffController@destroy')->name('staff.delete'); |
|
| 55 | 28 | \ No newline at end of file |
@@ -25,30 +25,3 @@ |
||
| 25 | 25 | Route::get('/home', 'HomeController@index'); |
| 26 | 26 | |
| 27 | 27 | <<<<<<< HEAD |
| 28 | -Route::get('/callbacks', 'CallbackController@index')->name('callbacks.index'); |
|
| 29 | -Route::get('/callbacks/register', 'CallbackController@register')->name('callbacks.register'); |
|
| 30 | -Route::get('/callbacks/display/{id}', 'CallbackController@edit')->name('callbacks.display'); |
|
| 31 | -Route::post('/callbacks', 'CallbackController@store')->name('callbacks.store'); |
|
| 32 | - |
|
| 33 | -======= |
|
| 34 | -// Costumers routes |
|
| 35 | ->>>>>>> b65ccccd988a46329b5b01893711e0fcc8cb0b01 |
|
| 36 | -Route::get('/customers', 'CustomersController@index')->name('customers.index'); |
|
| 37 | -Route::get('/customers/register', 'CustomersController@register')->name('customers.register'); |
|
| 38 | -Route::get('/customers/display/{id}', 'CustomersController@edit')->name('customers.display'); |
|
| 39 | -Route::post('/customers', 'CustomersController@store')->name('customers.store'); |
|
| 40 | - |
|
| 41 | -// Status routes |
|
| 42 | -Route::get('/status/available', 'StaffController@setAvailable')->name('status.available'); |
|
| 43 | -Route::get('/status/unavailable', 'StaffController@setUnavailable')->name('status.unavailable'); |
|
| 44 | - |
|
| 45 | -// Profile routes |
|
| 46 | -Route::get('/profile', 'StaffController@profile')->name('staff.index'); |
|
| 47 | - |
|
| 48 | -// Staff routes |
|
| 49 | -Route::get('/staff', 'StaffController@index')->name('profile'); |
|
| 50 | -Route::get('/staff/edit/{id}', 'StaffController@edit')->name('staff.edit'); |
|
| 51 | -Route::post('/staff/edit/{id}', 'StaffController@update')->name('staff.update'); |
|
| 52 | -Route::get('/staff/create', 'StaffController@create')->name('staff.create'); |
|
| 53 | -Route::post('/staff/create', 'StaffController@store')->name('staff.store'); |
|
| 54 | -Route::get('/staff/delete/{id}', 'StaffController@destroy')->name('staff.delete'); |
|
| 55 | 28 | \ No newline at end of file |