コード例 #1
0
ファイル: CustomersController.php プロジェクト: tyloo/tyloo
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\View\View
  */
 public function index()
 {
     $customers = $this->customers->all();
     return view('backend.customers.index', compact('customers'));
 }
コード例 #2
0
 public function customers(CustomerRepository $customers)
 {
     return view('admin.main')->with('customers', $customers->all());
 }
コード例 #3
0
ファイル: PagesController.php プロジェクト: tyloo/tyloo
 /**
  * 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'));
 }