Nama tabel students, kolom yang ingin ditambahkan user_id
php artisan make:migration add_user_id_to_students_table --table=students
Nama tabel students, kolom yang ingin ditambahkan user_id
php artisan make:migration add_user_id_to_students_table --table=students
Mengubah ukuran disk lvm di proxmox 6.
Backup container.
Jalankan perintah untuk restore dengan ukuran yang baru, sebagai contoh ukuran 10G
pct restore 110 /data/dump/vzdump-lxc-100-2022_01_03-12_20_07.tar.zst --rootfs local-lvm:10
Laravel 6 schedule:work
Dapet dari sini https://github.com/laravel/ideas/issues/2338
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Artisan;
class ScheduleListen extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'schedule:listen';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Listen for scheduled tasks';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$this->line('Listening for scheduled tasks..');
while (true) {
if(now()->startOfMinute()->is(now())) {
Artisan::call('schedule:run');
$output = Artisan::output();
if($output != 'No scheduled commands are ready to run.') {
$this->line($output);
}
}
sleep(1);
}
}
}
Allahu akbar.. Allahu akbar... Allahu akbar..