Update Guide

Update Id 49902fd

What’s New

How to Update

app
resources
public/static
public/uploads
Route::get('update', function () {
   Schema::table('posts', function ($table) {
       $table->boolean('apply_elsewhere')->default(0)->after('description');
       $table->timestamp('expire_at')->nullable()->after('approved_at');
   });
    $posts = \App\Jobshunt\Models\Post::all();
    foreach ($posts as $post) {
        $post->apply_elsewhere = true;
        $post->expire_at = \Carbon\Carbon::now()->addYears(2);
        $post->save();
    }
    return 'Success';
});