コード例 #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $events = History::orderBy('updated_at', 'desc')->simplePaginate(10);
     foreach ($events as $event) {
         $event->name3 = Book::withTrashed()->find($event->book)->name;
     }
     return view('history', ['events' => $events, 'version' => IndexController::version(), 'Not' => session()->get('count')]);
 }
コード例 #2
0
 /**
  * Show the form for creating a new resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function create()
 {
     return view('addPost', ['version' => IndexController::version(), 'countNot' => session()->get('count')]);
 }
コード例 #3
0
 function faq()
 {
     return view('faq', ['version' => IndexController::version()]);
 }