app/Http/Controllers/BookController.php
/**
     * Store a newly created resource in storage.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
Store a newly created resource in storage.
Store a newly created resource in storage .
public function store(Request $request)
    {
        $book = new book;
        $book->title = $request->a;
        $book->author_id = $request->b;
        $book->amount = $request->c;
        $book->cover = $request->d;
        $book->save();
        return redirect('book');
    }
public function store ( Request $ request ) { $ book = new book ; $ book -> title = $ request -> a ; $ book -> author_id = $ request -> b ; $ book -> amount = $ request -> c ; $ book -> cover = $ request -> d ; $ book -> save ( ) ; return redirect ( 'book' ) ; }
Store a newly created resource in storage.
Store a newly created resource in storage .
//