controllerとviewの操作を続けよう

namespace App\Http\Controllers;

use Illuminate\Http\Request;
use App\Article;

class ArticlesController extends Controller
{
    //
    public function index(){
    	$articles = Article::all();
    	dd($articles->toArray());
    	return view('articles.index');
    }
}

<ul>
		@foreach ($articles as $article)
		<li><a href="">{{ $article->name }}</a></li>
		@endforeach
	</ul>

ほうほう、少しわかってきたぞー

<h1>Articles</h1>
	<ul>
		@foreach ($articles as $article)
		<li><a href="">{{ $article->name }}</a></li>
		@endforeach
	</ul>