/** * Display a listing of the resource. * * @return \Illuminate\View\View */ public function index() { $customers = $this->customers->all(); return view('backend.customers.index', compact('customers')); }
public function customers(CustomerRepository $customers) { return view('admin.main')->with('customers', $customers->all()); }
/** * Home Page. * * @return \Illuminate\View\View */ public function home() { $works = $this->works->all(); $customers = $this->customers->all(); return view('frontend.pages.home', compact('works', 'customers')); }