I get a little problem when I follow the route controller.
Web.php Code:
{"
Route::controller('/admin','adminController');
"}
Code adminController.php:
{"
<?php
namespace App\Http\Controllers;
class adminController extends Controller{
public function getDashboard(){
echo " Get Dashborad Method ";
}}
"}
When I clicked the http://localhost:8000/admin/dashboard
error:
Display ("BadMethodCallException on line Macroable.php 74: Method controller does not exist.")
Here is the SnapShot:

Please take a look and tell me what is wrong with the code.
source
share