久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      聊聊?laravel怎么用命令來執(zhí)行腳本

      下面由Laravel教程欄目帶大家介紹laravel怎么用命令來執(zhí)行腳本,希望對(duì)大家有所幫助!

      laravel 使用命令執(zhí)行腳本

      1.生成console文件

       php artisan make:console TestConsole --command=laravel:test

      2.handle方法中編輯業(yè)務(wù)邏輯

      <?php namespace AppConsoleCommands; use IlluminateConsoleCommand; class HelloLaravelAcademy extends Command {     /**      * The name and signature of the console command.      *      * @var string      */     protected $signature = 'laravel:test {name?}';     /**      * The console command description.      *      * @var string      */     protected $description = 'Command description';     /**      * Create a new command instance.      *      * @return void      */     public function __construct()     {         parent::__construct();     }     /**      * Execute the console command.      *      * @return mixed      */     public function handle()     {         echo $this->argument("name").PHP_EOL;         echo 123;     } }

      $signature為是否接收參數(shù),?表示非必須。 arguement接收參數(shù)

      執(zhí)行

       php artisan laravel:test    php artisan laravel:test xiaoming

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)