lundi 18 juillet 2016

InvalidArgumentException in FileViewFinder.php line 137: View [books.edit] not found

I am getting error like InvalidArgumentException in FileViewFinder.php line 137: View [books.edit] not found my Routes Route::resource('books','BookController');
Route::get('books', 'BookController@index');
Route::get('books/edit/{id}', 'BookController@edit');

My View<br>

@extends('layout/template')

@section('content')
 <h1>BookStore</h1>
 <a href="" class="btn btn-success">Create Book</a>
 <hr>
 <table class="table table-striped table-bordered table-hover">
     <thead>
     <tr class="bg-info">
         <th>Id</th>
         <th>ISBN</th>
         <th>Title</th>
         <th>Author</th>
         <th>Publisher</th>
         <th>Thumbs</th>
         <th colspan="3" style="text-align: center;">Actions</th>
     </tr>
     </thead>
     <tbody>
     @foreach ($books as $book)
         <tr class="bg-info">
             <td></td>
             <td></td>
             <td></td>
             <td></td>
             <td></td>
             <td><img src="" height="35" width="30"></td>
             <td><a href="" class="btn btn-primary">Read</a></td>
             <td><a href="" class="btn btn-warning">Update</a></td>
             <td>
             {!! Form::open(['method' => 'DELETE', 'route'=>['books.destroy', $book->id]]) !!}
             {!! Form::submit('Delete', ['class' => 'btn btn-danger']) !!}
             {!! Form::close() !!}
             </td>
         </tr>
     @endforeach

     </tbody>

 </table>
@endsection


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire