Laravel - MVC setting



1. web.php

Route::get('/', 'IndexController@index');


ReflectionException - Class App\Http\Controllers\IndexController does not exist



2. make artisan CLI


$ php artisan make:controller IndexController




3. app/Http/Controllers/indexController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class IndexController extends Controller
{
//
public function index(){
return view('index');
}
}









'■ 백엔드 ■ > Laravel' 카테고리의 다른 글

Laravel - MVC setting  (0) 2018.01.18
Vuejs 연동하기  (0) 2018.01.18
라라벨 폴더 구조  (0) 2018.01.18
윈도우에 Laravel 구성하기  (0) 2018.01.17
Posted by SAP (Study And Programming) by serpiko

댓글을 달아 주세요