App下載

詞條

大約有 7,000 項符合查詢結(jié)果 ,庫內(nèi)數(shù)據(jù)總量為 78,250 項。(搜索耗時:0.0047秒)

3771.Laravel 8 發(fā)布群組文件

...ic function boot() { $this->publishes([ __DIR__.'/../config/package.php' => config_path('package.php') ], 'config'); $this->publishes([ __DIR__.'/../database/migrations/' => database_path('migrations') ], 'migrations'); }現(xiàn)在,你的用...

http://www.o2fo.com/laravel_8/laravel_8-kj7f3htq.html

3772.Laravel 8 超時

注意:必須安裝 PHP 擴展 pcntl 才能指定任務超時。 同樣,任務可以運行的最大秒數(shù)可以使用 Artisan 命令行上的 –timeout 開關來指定:php artisan queue:work --timeout=30 但是,你也可以定義允許任務在任務類本身上運行的最大秒數(shù)。如...

http://www.o2fo.com/laravel_8/laravel_8-hrm63hui.html

3773.Laravel 8 指定連接 & 隊列

...用哪個連接。傳遞給 work 命令的連接名應該與 config/queue.php 配置文件中定義的一個連接相對應:php artisan queue:work redis 你甚至可以通過僅處理特定連接的特定隊列來進一步定制你的隊列任務處理器。例如,如果你所有的電子郵件...

http://www.o2fo.com/laravel_8/laravel_8-xwmd3huz.html

3774.Laravel 8 生成遷移

使用 make:migration Artisan 命令 命令來創(chuàng)建遷移:php artisan make:migration create_users_table 提示:遷移 stubs 必須使用 stub publishing 進行自定義。 --table 和 --create 選項也可用于確定表的名稱以及是否在遷移中創(chuàng)建新的數(shù)據(jù)表。這些選項用...

http://www.o2fo.com/laravel_8/laravel_8-s4oc3hzb.html

3775.Laravel 8 回滾遷移

...到最后 「一批」 的遷移,這可能會包含多個遷移文件:php artisan migrate:rollback 通過向 rollback 命令加上 step 參數(shù),可以回滾指定數(shù)量的遷移。例如,以下命令將回滾最后五個遷移:php artisan migrate:rollback --step=5Copy如果您在遷移后...

http://www.o2fo.com/laravel_8/laravel_8-426e3hzd.html

3776.Laravel 8 使用一個命令同時進行回滾和遷移操作

...據(jù)庫之后,對后面新增的遷移文件進行遷移。示例: php artisan migrate:refresh// 上列是刷新當前已有的遷移,下列是刷新當前已有的遷移后,更新未有的遷移 php artisan migrate:refresh --seed 在 migrate:refresh 中,您還可以使用 step 參數(shù)來...

http://www.o2fo.com/laravel_8/laravel_8-bxpv3hzh.html

3777.Laravel 8 運行 Seeders

...,你也可以使用 --class 選項來指定一個特定的 seeder 類:php artisan db:seed php artisan db:seed --class=UserSeeder 你也可以用 migrate:fresh 這個命令來填充數(shù)據(jù)庫,這將刪除所有表并重新運行所有遷移。這個命令可以用來重建數(shù)據(jù)庫:php artisan...

http://www.o2fo.com/laravel_8/laravel_8-2wdv3i0c.html

3778.Laravel 8 PhpRedis

要使用 PhpRedis 擴展,需要將配置文件 config/database.php 中 Redis 配置的 REDIS_CLIENT 選項修改為 phpredis:'redis' => [ 'client' => env('REDIS_CLIENT', 'phpredis'), // 剩下的 Redis 配置... ], 如果您打算將 PhpRedis 擴展名與 R...

http://www.o2fo.com/laravel_8/laravel_8-ahke3i0k.html

3779.Laravel 8 Redis Facade

為了避免與 Redis PHP 擴展本身發(fā)生類名沖突,需要在配置文件 config/app.php 刪除或重命名 Illuminate\Support\Facades\Redis Facade 別名。通常,您應該完全刪除該別名,并且在使用 Redis PHP 擴展時僅通過其完全合格的類名稱引用外觀。

http://www.o2fo.com/laravel_8/laravel_8-3ocd3i0l.html

3780.Laravel 8 主鍵

...你可以定義一個受保護的 $primaryKey 屬性來重寫約定。<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Flight extends Model { /** * 與表關聯(lián)的主鍵 * * @var string */ protected $primaryKey = 'flight_id'; } 此外,Eloquent 假設主鍵是一...

http://www.o2fo.com/laravel_8/laravel_8-bo8x3i0w.html

抱歉,暫時沒有相關的微課

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關的視頻課程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

抱歉,暫時沒有相關的教程

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

3771.Laravel 8 發(fā)布群組文件

...ic function boot() { $this->publishes([ __DIR__.'/../config/package.php' => config_path('package.php') ], 'config'); $this->publishes([ __DIR__.'/../database/migrations/' => database_path('migrations') ], 'migrations'); }現(xiàn)在,你的用...

http://www.o2fo.com/laravel_8/laravel_8-kj7f3htq.html

3772.Laravel 8 超時

注意:必須安裝 PHP 擴展 pcntl 才能指定任務超時。 同樣,任務可以運行的最大秒數(shù)可以使用 Artisan 命令行上的 –timeout 開關來指定:php artisan queue:work --timeout=30 但是,你也可以定義允許任務在任務類本身上運行的最大秒數(shù)。如...

http://www.o2fo.com/laravel_8/laravel_8-hrm63hui.html

3773.Laravel 8 指定連接 & 隊列

...用哪個連接。傳遞給 work 命令的連接名應該與 config/queue.php 配置文件中定義的一個連接相對應:php artisan queue:work redis 你甚至可以通過僅處理特定連接的特定隊列來進一步定制你的隊列任務處理器。例如,如果你所有的電子郵件...

http://www.o2fo.com/laravel_8/laravel_8-xwmd3huz.html

3774.Laravel 8 生成遷移

使用 make:migration Artisan 命令 命令來創(chuàng)建遷移:php artisan make:migration create_users_table 提示:遷移 stubs 必須使用 stub publishing 進行自定義。 --table 和 --create 選項也可用于確定表的名稱以及是否在遷移中創(chuàng)建新的數(shù)據(jù)表。這些選項用...

http://www.o2fo.com/laravel_8/laravel_8-s4oc3hzb.html

3775.Laravel 8 回滾遷移

...到最后 「一批」 的遷移,這可能會包含多個遷移文件:php artisan migrate:rollback 通過向 rollback 命令加上 step 參數(shù),可以回滾指定數(shù)量的遷移。例如,以下命令將回滾最后五個遷移:php artisan migrate:rollback --step=5Copy如果您在遷移后...

http://www.o2fo.com/laravel_8/laravel_8-426e3hzd.html

3776.Laravel 8 使用一個命令同時進行回滾和遷移操作

...據(jù)庫之后,對后面新增的遷移文件進行遷移。示例: php artisan migrate:refresh// 上列是刷新當前已有的遷移,下列是刷新當前已有的遷移后,更新未有的遷移 php artisan migrate:refresh --seed 在 migrate:refresh 中,您還可以使用 step 參數(shù)來...

http://www.o2fo.com/laravel_8/laravel_8-bxpv3hzh.html

3777.Laravel 8 運行 Seeders

...,你也可以使用 --class 選項來指定一個特定的 seeder 類:php artisan db:seed php artisan db:seed --class=UserSeeder 你也可以用 migrate:fresh 這個命令來填充數(shù)據(jù)庫,這將刪除所有表并重新運行所有遷移。這個命令可以用來重建數(shù)據(jù)庫:php artisan...

http://www.o2fo.com/laravel_8/laravel_8-2wdv3i0c.html

3778.Laravel 8 PhpRedis

要使用 PhpRedis 擴展,需要將配置文件 config/database.php 中 Redis 配置的 REDIS_CLIENT 選項修改為 phpredis:'redis' => [ 'client' => env('REDIS_CLIENT', 'phpredis'), // 剩下的 Redis 配置... ], 如果您打算將 PhpRedis 擴展名與 R...

http://www.o2fo.com/laravel_8/laravel_8-ahke3i0k.html

3779.Laravel 8 Redis Facade

為了避免與 Redis PHP 擴展本身發(fā)生類名沖突,需要在配置文件 config/app.php 刪除或重命名 Illuminate\Support\Facades\Redis Facade 別名。通常,您應該完全刪除該別名,并且在使用 Redis PHP 擴展時僅通過其完全合格的類名稱引用外觀。

http://www.o2fo.com/laravel_8/laravel_8-3ocd3i0l.html

3780.Laravel 8 主鍵

...你可以定義一個受保護的 $primaryKey 屬性來重寫約定。<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Flight extends Model { /** * 與表關聯(lián)的主鍵 * * @var string */ protected $primaryKey = 'flight_id'; } 此外,Eloquent 假設主鍵是一...

http://www.o2fo.com/laravel_8/laravel_8-bo8x3i0w.html

抱歉,暫時沒有相關的文章

w3cschool 建議您:

  • 檢查輸入的文字是否有誤

熱門課程