print $date = '2015-02-03' . ' <Br>'; return substr($date, 8, 2); // return Carbon::yesterday()->endOfDay(); // return (new Sale)->getYesterdaysBestSeller(); // return Carbon::create(2015,2,3,0)->startOfDay(); // return Carbon::create(2015-08-26 23:06:20)->endOfDay(); // return $prod->getCurrentProduction()->toArray(); return Auth::user()->role; if (Auth::attempt(array('password' => 'raymund123'))) { return 'true'; } else { return 'false'; } // return 10 + -10; // return Item::find(1)->cart; $temp = TempCart::all()->toArray(); $item = Item::where('barcode', '=', '900110023')->get()->toArray(); // return TempCart::all(); return json_encode(array_merge($temp, $item)); return DNS1D::getBarcodeHTML('123456789', "EAN13", 2, 60); $production = Production::find(2); return $production->items; }); Route::get('test/{trans_id}', ['uses' => 'SalesController@printInvoice']); Route::get('sample/{code}', ['uses' => 'SalesController@processOrder']); Route::get('/item/findbyname/{name}', ['uses' => 'ItemsController@findByName']); Route::group(array('before' => 'auth'), function () { Route::get('/', ['as' => 'home', 'uses' => 'BaseController@index']); // Route::get('/',function(){ // return View::make('index') // ->with('title',"Flibbys Point of Sale System");