<?php
namespace App\Http\Controllers\home;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class DemoController extends Controller{
public function demo(){
return view('home.demo');
}
}
<?php
namespace App\Http\Controllers;
use Illuminate\Support\Facades\Route;
Route::get('demo', [home\DemoController::class, 'show']);
上一篇:laravel下载与安装