database/migrations/2016_09_22_165717_update_canvas_page_image_paths.php
public function up()
    {
        \Canvas\Models\Post::chunk(20, function (\Illuminate\Support\Collection $posts) {
            $posts->each(function (\Canvas\Models\Post $post) {
                if (! starts_with($post->page_image, '/storage/')) {
                    $post->page_image = '/storage/'.$post->page_image;
                    $post->save();
                }
            });
        });
    }
public function up()
    {
        \Canvas\Models\Post::chunk(20, function (\Illuminate\Support\Collection $posts) {
            $posts->each(function (\Canvas\Models\Post $post) {
                if (! starts_with($post->page_image, '/storage/')) {
                    $post->page_image = '/storage/'.$post->page_image;
                    $post->save();
                }
            });
        });
    }
Run the migrations.

@return void