Öncelikle teşekkür ederim,
BlogController sayfası;
public function index()
{
$blogs=Blog::orderBy('created_at','desc')->get();
return view('blog.index',compact($blogs));
}
index.blade.php sayfası
@extends('layouts.master')
@section('header')
<h2>Blog List</h2>
@stop
@section('content')
<a href="blog/create" class="btn btn-primary">Add new</a>
<table class="table table-bordered table-responsive" style="margin-top: 10px">
<thead>
<tr>
<th>ID</th>
<th>Title</th>
<th>Description</th>
<th>Created at</th>
<th colspan="2">Action</th>
</tr>
</thead>
<tbody>
<tr>
@foreach($blogs as $blog)
<td>{{ $blog->id}}</td>
<td>{{ $blog->title }}</td>
<td>{{ $blog->description }}</td>
<td>{{ $blog->created_at }}</td>
<td>
<a href="{{ Route('blog.edit',$blog->$id) }}" class="btn btn-success">Edit</a>
</td>
<td>
{!! Form::open(['method'=>'delete','route'=>['blog.destroy',$blog->id]]) !!}
{!! Form::submit('Delete',['class'=>'btn btn-danger','onclick'=>'return confirm("Do you want to delete this record?")']) !!}
{!! Form::close() !!}
</td>
@endforeach
</tr>
</tbody>
</table>
@stop
Veritabanındada
Tablo Adı:"blogs"
Tablo Sütunlarıda bunlar;
id
title
description
created_at
updated_at
Dediğiniz kodu BlogControler sayfasındaki yere yazdım ama yine aynı hatayı aldım.