Method Illuminate\Routing\Route::getRouteName does not exist. in file code example
Example: Method Illuminate\Routing\Route::get does not exist
<?php
//This import is wrong:
use Illuminate\Routing\Route;
//You actually don't have to import any class as Laravel registers a global alias Route.
//If you want to import the right class, that would be:
use Illuminate\Support\Facades\Route;