How to configure Cron jobs in Homestead ?

devquora
devquora

Posted On: Feb 22, 2018

 

There are numerous ways to configure Cron in Homestead like:

  • Make new Artisan command and register it within the Kernel. Then execute the “PHP artisan list" command within the terminal. One will observe the command has been recorded. Command will be implemented with the sign that is kept in “protected $signature = ‘command: name'". One will observe the log message within the terminal.
  • Utilize call back or closure method: Laravel permits one to close, execute a call back utilizing the “call" process. Laravel also permits one to schedule shell commands to initiate commands to the external applications and operating system.
  • Simply after reaching the terminal add SSH to the server and cd within the project and execute the command "cronstab -e". This will ensure its opening and after pasting the code below within the file, save it and exit.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Laravel 5 interview questions

    List Server Requirements for installing Laravel 6

    There is quite a requisite for the installation of Laravel 6. And, below is the list of the required servers that are needed for the installment of it.PHP 7.2.0 version Extension of BCMath PHP J...

    Laravel 5 interview questions

    What is Composer? How to install composer

    Composer is a tool to manage the dependency in PHP. Composer allows declaring the libraries of a project and the composer will install or update them for the user. It is not a package manager but deal...