ЁЯФ╕ English:
This command lets you create your own Artisan commands that can be run like:
bashCopyEditphp artisan your:custom-command
You can define logic inside these commands to run background tasks, cron jobs, data processing, reports, etc.
ЁЯФ╕ Hindi:
php artisan make:command
рдХрд╛ рдЙрдкрдпреЛрдЧ рд╣рдо рдЕрдкрдирд╛ рдЦреБрдж рдХрд╛ custom Artisan command рдмрдирд╛рдиреЗ рдХреЗ рд▓рд┐рдП рдХрд░рддреЗ рд╣реИрдВред
рдЬреИрд╕реЗ Laravel рдореЗрдВ php artisan migrate
, рдЙрд╕реА рддрд░рд╣ рдЖрдк php artisan send:report
рдЬреИрд╕рд╛ command рдмрдирд╛ рд╕рдХрддреЗ рд╣реИрдВ рдЬреЛ рдХреЛрдИ рднреА task perform рдХрд░реЗ тАФ рдЬреИрд╕реЗ email рднреЗрдЬрдирд╛, backup рд▓реЗрдирд╛, рдпрд╛ background рдореЗрдВ рдХреЛрдИ рдХрд╛рдо рдХрд░рдирд╛ред
тЬЕ Syntax:
bashCopyEditphp artisan make:command SendReport
This will create a file in:
arduinoCopyEditapp/Console/Commands/SendReport.php
тЬЕ Real-World Example:
ЁЯОп Use Case:
You want to send a daily report email to the admin from the command line or via scheduler.