Esempio n. 1
0
 public function show($id)
 {
     $item = Items::with('recipes')->with('purchases')->findOrFail($id);
     $history = History::where('message', 'LIKE', '%(ID ' . $id . ')%')->where('action', '=', 'App\\Http\\Controllers\\StockCheckController@store ')->get();
     echo '<pre>';
     echo $history->count();
     echo 'id: ' . $id;
     echo '</pre>';
     return view('Items.show')->with(array('title' => $this->title, 'item' => $item, 'history' => $history));
 }