PHP Laravel – 새로운 index 페이지 만들기 – 1

\app\Http\Controllers\PagesController.php

<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

class PagesController extends Controller
{
public function index()
{
return 'INDEX PAGE';
}
}

\routes\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!
|
*/


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

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다