title: error when try to open route without parameter in Laravel 9
body: <p>I have a problem when trying to access any route without parameter:</p>
  <p>When I wrte any route without {uname} parameter like this or any other one:</p>
  <pre><code>http://127.0.0.1:8000/login/
  </code></pre>
  <p>show me this error :
  <a href="https://i.stack.imgur.com/ZfqbT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZfqbT.png" alt="enter image description here" /></a></p>
  <p>and it is in the home in another controller?</p>
  <p>These is my routes:</p>
  <pre><code>Route::get('/{uname?}', [HomeController::class, 'home'])-&gt;name('home');
  
  Route::get('/info/{uname?}', [HomeController::class, 'info'])-&gt;name('info.me');
  
  Route::get('/skills/{uname?}', [HomeController::class, 'skills'])-&gt;name('skills');
  
  Route::get('/education/{uname?}', [HomeController::class, 'education'])-&gt;name('education');
  
  Route::get('/achievements/{uname?}', [HomeController::class, 'achievements'])-&gt;name('achievements');
  
  Route::get('/services/{uname?}', [HomeController::class, 'services'])-&gt;name('services');
  
  Route::get('/contact/{uname?}', [HomeController::class, 'contact'])-&gt;name('contact');
  
  Route::post('/send-email', [HomeController::class, 'sendEmail'])-&gt;name('send-email');
  
      Route::get('/dashboard/index', [DashboardController::class, 'index'])-&gt;name('dashboard.index');
      Route::resource('/dashboard/about', AboutController::class);
      Route::resource('/dashboard/skills', SkillsController::class);
      Route::resource('/dashboard/education', EducationController::class);
  </code></pre>
  <p>and here is my HomeController:</p>
  <pre><code>class HomeController extends Controller
  {
      function home($uname) {
         $user = User::where('name', '=', $uname)-&gt;first();
         $about =  $user-&gt;about;
          return view('home', compact('user', 'about'));
      }
  
  
      function info($uname) {
          $user = User::where('name', '=', $uname)-&gt;first();
          $about =  $user-&gt;about;
          return view('info', compact(['user', 'about']));
      }
  
      function skills($uname) {
          $user = User::where('name', '=', $uname)-&gt;first();
          $about = $user-&gt;about;
          $skills = $user-&gt;skills;
          return view('skills', compact(['skills', 'user', 'about']));
      }
  </code></pre>
  <p>I have already tried those and nothing changed:</p>
  <pre><code>PHP artisan route: cache
  PHP artisan cache:clear
  </code></pre>