skip to Main Content

Setting up a Laravel cron job in cPanel

I have the following function: protected function schedule(Schedule $schedule) { $schedule->command('email:users')->everyMinute(); } when I run the command artisan schedule:run it sends an email but when I add the following command to the cpanel as a cron job it doesn't send…

VIEW QUESTION

how to run cron in cpanel using codeigniter

how to run cron in cpanel using codeigniter <?php class Cron extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model('email_model'); } public function index() { $c_date = date('Y-m-d'); $remider_data = $this->email_model->get_customer_remider_data(array('status'=>'1', 'reminder_date_before' => $c_date)); foreach($remider_data as $remider_data_mail) { $mailTo =…

VIEW QUESTION
Back To Top
Search