You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
432B

  1. <?php
  2. namespace App\Http\Controllers\Items;
  3. use Framework\Routing\Router;
  4. class ShowCreateItemFormController
  5. {
  6. public function handle(Router $router)
  7. {
  8. if (!session()->has('user_id')) {
  9. return redirect($router->route('show-register-form'));
  10. }
  11. return view('items/create', [
  12. 'createAction' => $router->route('create-item'),
  13. 'csrf' => csrf(),
  14. ]);
  15. }
  16. }

Powered by TurnKey Linux.