title: Laravel - create folder with user->id on user registration
body: <p>I find function for user registeration:</p>
  
  <pre><code>public function postRegister(Request $request)
      {
          $validator = $this-&gt;validator($request-&gt;all());
  
          if ($validator-&gt;fails()) {
              $this-&gt;throwValidationException(
                  $request, $validator
              );
          }
  
          Auth::login($this-&gt;create($request-&gt;all()));
      File::makeDirectory('/images/'.Auth::user()-&gt;id);
  
          return redirect($this-&gt;redirectPath());
      }
  </code></pre>
  
  <p>but is possible to create folder inisde image folder with name $user->id so to create folder like /images/1</p>
  
  <p>I try with</p>
  
  <pre><code>$result = File::makeDirectory('/images/'.Auth::user()-&gt;id);
  </code></pre>
  
  <p>but without success</p>
  
  <p>I also try :</p>
  
  <pre><code>$directory = public_path().'\images'.Auth::user()-&gt;id;
  File::makeDirectory($directory);
  </code></pre>
  
  <p>but again I just dont see folder ...</p>
  
  <p>Is there any way to create folder inside public/images/user->id on user register</p>