2016-07-18 2 views
1

が見つかりません( 'books'、 'BookController');
ルート:: get( 'books'、 'BookController @ index');
ルート:: get( 'books/edit/{id}'、 'BookController @ edit');InvalidArgumentException:ビューは[books.edit]が見つかりません 私のルート ルート::リソース:ビューは[books.edit]私はFileViewFinder.phpライン137で InvalidArgumentExceptionのようなエラーを取得しています

My View<br> 
 

 
@extends('layout/template') 
 

 
@section('content') 
 
<h1>BookStore</h1> 
 
<a href="{{url('/books/create')}}" 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>{{ $book->id }}</td> 
 
      <td>{{ $book->isbn }}</td> 
 
      <td>{{ $book->title }}</td> 
 
      <td>{{ $book->author }}</td> 
 
      <td>{{ $book->publisher }}</td> 
 
      <td><img src="{{asset('img/'.$book->image.'.jpg')}}" height="35" width="30"></td> 
 
      <td><a href="{{url('books',$book->id)}}" class="btn btn-primary">Read</a></td> 
 
      <td><a href="{{url('books/edit',$book->id)}}" 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

答えて

1

私のビューファイル

私はHTMLフォームを追加したいくつかの変更

と私の問題を修正しました。

関連する問題