title: How to move an existing image into storage in laravel 6?
body: <p>I have the image called &quot;student_image.jpeg&quot; being set up as a default image.</p>
  <pre><code>public function up()
      {
          Schema::table('users', function (Blueprint $table) {
              $table-&gt;string('avatar')-&gt;default('images/student_image.jpeg');
          });
      }
  </code></pre>
  <p>It's initially located in the public folder. I want it to be in the <code>storage/avatars/admin</code> folder.</p>
  <p><a href="https://i.stack.imgur.com/bOQr2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bOQr2.png" alt="enter image description here" /></a></p>
  <p>I don't understand how to move this image into the folder. I've tried to use <code>Storage::move</code> when seeding the admin table but it doesn't work and I don't think it's the right place to put the code.</p>
  <pre><code>&lt;?php
  
  use Illuminate\Database\Seeder;
  use Illuminate\Support\Str;
  use TCG\Voyager\Models\Role;
  use TCG\Voyager\Models\User;
  use Illuminate\Support\Facades\Storage;
  
  
  class AdminSeeder extends Seeder
  {
      /**
       * Run the database seeds.
       *
       * @return void
       */
      public function run()
      {
          if (User::count() == 0) {
              $role = Role::where('name', 'admin')-&gt;firstOrFail();
  
              User::create([
                  'name'           =&gt; 'Admin',
                  'email'          =&gt; 'admin@involta.ru',
                  'birthday'       =&gt; '1998.09.25 00:00:00',
                  'phone'          =&gt; '8-999-888-77-22',
                  'department_id'  =&gt; '3',
                  'password'       =&gt; bcrypt('admin@involta.ru'),
                  'remember_token' =&gt; Str::random(60),
                  'role_id'        =&gt; $role-&gt;id,
              ]);
  
              Storage::move('public/images/student_image.jpeg', 'storage/avatars/admin/student_image.jpeg');
  
          }
      }
  }
  </code></pre>
  <p>Any ideas on this issue?</p>