I use this bash commands to create a new laravel blade page including its controller and route.

 

mkdir resources/views/mdb; echo "<?php namespace App\Http\Controllers;use Illuminate\Http\Request;class MdbProductController extends Controller{public function index() { return view('mdb.home');}}" > app/Http/Controllers/MdbProductController.php; echo '<h1>mbd/home.blade.php</h1>' > resources/views/mdb/home.blade.php; code resources/views/mdb/home.blade.php; code app/Http/Controllers/MdbProductController.php

Open your browser to http://127.0.0.1:8000/mdb/

Please note, this assumes you are using Visual Code as your text editor.

Tested Version: Laravel 10

You may need to reformat the newly added code. you can do this by hiting alt+shift+f in visual code.