예제 #1
0
 public function index()
 {
     $deals = Deal::orderBy('updated_at', 'desc')->get();
     return response(['data' => $deals, 'status' => 'success', 'message' => '']);
 }
예제 #2
0
 public function index()
 {
     $deals = Deal::orderBy('updated_at', 'desc')->get();
     return View::make('Middle.Web.Deal.index', compact('deals'));
 }