title: Laravel 5 InvalidArgumentException in FileViewFinder.php line 137: View [.admin] not found
body: <p>This is <strong>student.php</strong> and my function for admin:</p>
  
  <pre><code> public function admin(Request $request){
  
         if($request-&gt;isMethod('get')){
         return \View::make('/admin');
      }
         else
          {
  
                   $UserData['email'] = Input::get('username');
                   $UserData['password'] = Input::get('password');
                   User::create($UserData);
                   return 'admintest';
                   //return Redirect::to('/view');
           }
     }   
  </code></pre>
  
  <p><strong>routes.php</strong></p>
  
  <pre><code>      Route::match(['get', 'post'], '/admin', 'student@admin');
  </code></pre>
  
  <p>This is admin form:</p>
  
  <pre><code>     {!! Form::open(array('url' =&gt; '/admin')) !!}
    &lt;input type="hidden" name="_token" value="{{ csrf_token() }}"&gt;
  
  
      User Name:&lt;br /&gt;
        &lt;input name="username" type="text" id="username" size="40" /&gt;
      &lt;br /&gt;&lt;br /&gt;
      Password:&lt;br /&gt;
     &lt;input name="password" type="password" id="password" size="40" /&gt;
     &lt;br /&gt;
     &lt;br /&gt;
     &lt;br /&gt;
  
       &lt;input type="submit" name="button" id="button" value="Log In" /&gt;
  
  
    {!! Form::close() !!}
  </code></pre>
  
  <p>Don't know why showing error:</p>
  
  <blockquote>
    <p>InvalidArgumentException in FileViewFinder.php line 137:
    View [.] not found</p>
  </blockquote>