Update Id 49902fd
app
resources
public/static
public/uploads
boostrap/cache/routes.php
file ( If exists )app/http/routes.php
fileRoute::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';
});
yoursite.com/update