public function process($id)
 {
     $book = Book::findOrFail($id);
     $token = Input::get('stripeToken');
     $user = auth()->user();
     $orderService = app()->make(OrderService::class);
     $status = $orderService->process($book, $user, $token);
     return view('store.process', compact('book', 'status'));
 }
 public function edit($id, $chapter_id)
 {
     $book = Book::findOrFail($id);
     $chapter = Chapter::find($chapter_id);
     if (Gate::denies('manage', $chapter)) {
         abort(403, "you do not own this book/chapter");
     }
     return view('admin.chapters.edit', compact('chapter', 'book'));
 }