File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,25 +24,25 @@ php artisan migrate
2424```
2525
2626``` bash
27- php artisan commands # To see the list of available commands
27+ ./task-cli commands # To see the list of available commands
2828
2929# To add a task
30- php artisan add " Buy groceries"
30+ ./task-cli add " Buy groceries"
3131
3232# To update a task
33- php artisan update 1 " Buy groceries and cook dinner"
33+ ./task-cli update 1 " Buy groceries and cook dinner"
3434
3535# To delete a task
36- php artisan delete 1
36+ ./task-cli delete 1
3737
3838# To mark a task as in progress/done/todo
39- php artisan mark-in-progress 1
40- php artisan mark-done 1
41- php artisan mark-todo 1
39+ ./task-cli mark-in-progress 1
40+ ./task-cli mark-done 1
41+ ./task-cli mark-todo 1
4242
4343# To list all tasks
44- php artisan list
45- php artisan list done
46- php artisan list todo
47- php artisan list in-progress
44+ ./task-cli list
45+ ./task-cli list done
46+ ./task-cli list todo
47+ ./task-cli list in-progress
4848```
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env php
2+ <?php
3+
4+ define ('LARAVEL_START ' , microtime (true ));
5+
6+ // Composer autoloader
7+ require __DIR__ . '/vendor/autoload.php ' ;
8+
9+ $ app = require_once __DIR__ . '/bootstrap/app.php ' ;
10+
11+ // Artisan kernelni ishga tushirish
12+ $ kernel = $ app ->make (Illuminate \Contracts \Console \Kernel::class);
13+
14+ $ status = $ kernel ->handle (
15+ $ input = new Symfony \Component \Console \Input \ArgvInput ,
16+ new Symfony \Component \Console \Output \ConsoleOutput
17+ );
18+
19+ $ kernel ->terminate ($ input , $ status );
20+
21+ exit ($ status );
You can’t perform that action at this time.
0 commit comments