Home>
Going to taken verbatim from the book of the code for the study of

Laravel has come out is Error below.
Thank you very much for your teaching.

Error Contents

ReflectionException
Class App \ Http \ Controllers \ HomeMiddleware does not exist
Class App \ Http \ CONTROLLERS \ HOMEMIDDLEWARE DOESKIYA/DIAGNOSIS/DIAGNOSISIS/VENDOR/LARAVEL/FRAMEWORK/SRC/ILLUMINATE/CONTAINER/CONTAINER.PHP # 729
    ReflectionException

File that seems to be related

Web.PHP

<
? PHP
/*
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Web Routes
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|. Here is where you can register web routes for your application These
| Routes are loaded by the RouteServiceProvider within a group which
|. Contains the "web" middleware group Now create something great!
|
* /
//Use App \ Http \ Middleware \ Homemiddleware;
Route :: get ( 'home', 'HomeMiddleware @ index') ->
middleware (HomeMiddleware :: class);
Route :: post ( 'home', 'HomeController @ post');

HOMECONTROLLER.PHP

<
? PHP
Namespace App \ Http \ Controllers;
Use Illuminate \ HTTP \ Request;
USE ILLUMINATE \ HTTP \ Response;
Class HomeController Extends Controller {
    public function index (Request $ request) {
        Echo "Test";
        return view ( 'home.index', [ 'data'= >
 $ Request->
DATA);
    }
    Public Function Post (Request $ Request) {
        return view ( 'home.index', [ 'msg'= >
 $ Request->
MSG]);
    }
}

index.blade.php

@extends ( 'layouts.diagnosis')
@Section ('Title', 'index')
@section ('menubar')
    @parent
    Index page
@endsection
@Section ('Content')
    ≪
P >
Here is the content of the text. ≪
/P >
    ≪
TABLE >
    @ Foreach ($ DATA AS $ ITEM)
    ≪
TR >
        ≪
TH >
            {{$ Item ['name']}}
        ≪
/TH >
        ≪
TD >
            {{$ Item ['mail']}}
        ≪
/TD >
    ≪
/TR >
    ≪
/TABLE >
@endsection

HOMEMIDDLEWARE.PHP

<
? PHP
namespace app \ http \ middleware;
Use Closure;
Class HomeMiddleware {
    /**
     * HANDLE AN INCOMING REQUEST.
     *
     * @Param \ Illuminate \ Http \ Request $ request
     * @Param \ Closure $ NEXT
     * @Param String | NULL $ GUARD
     * @return Mixed
     * /
    public function handle ($ request, Closure $ next) {
        $ DATA= [
            ['name'= >
 'TARO', 'MAIL'= >
 'TARO @ MAIL'],
            ['name'= >
 'Hanako', 'Mail'= >
 'hanako @ mail',
            ['name'= >
 'SACHICO', 'MAIL'= >
 'SACHICO @ MAIL'],
        ];
        $ Request->
Merge (['data'= >
 $ DATA);
        RETURN $ NEXT ($ request);
    }
}
    @section ('footer')
    Copyright 2017 Tuyano.
    @endsection