/**
  * Display the deposer annonce page.
  *
  * @return Response
  */
 public function index(Category $category, Department $department, Region $region)
 {
     $regions = $region->lists();
     $departments = $department->listsWithRegion();
     $categories = $category->lists();
     return view('front.advertisement.add', compact('categories', 'departments', 'regions'));
 }
Exemplo n.º 2
0
 /**
  * Handle the register form for user.
  * 
  * @param type Department $department
  * @param type Region $region
  * @return type view
  */
 public function getRegister(Department $department, Region $region)
 {
     $regions = $region->lists();
     $departments = $department->listsWithRegion();
     return view('front.auth.register', compact('departments', 'regions'));
 }