你可以在 config/hashing.php 配置文件中配置默認哈希驅動程序。目前支持三種驅動程序: Bcrypt 和 Argon2 (Argon2i and Argon2id variants)。 注意:Argon2i 驅動程序需要 PHP 7.2.0 或更高版本,而 Argon2id 驅動程序則需要 PHP 7.3.0 或更高版本。
http://m.o2fo.com/laravel_8/laravel_8-9bhx3h5e.html...閉包命令可以說是命令類的替代方法。在 app/Console/Kernel.php 文件中的 commands 方法中,Laravel 加載了 routes/console.php 文件:/** * 注冊閉包命令 * * @return void */ protected function commands() { require base_path('routes/console.php'); }Copy盡管該...
http://m.o2fo.com/laravel_8/laravel_8-bwv23h6a.html...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://m.o2fo.com/laravel_8/laravel_8-kj7f3htq.html注意:必須安裝 PHP 擴展 pcntl 才能指定任務超時。 同樣,任務可以運行的最大秒數可以使用 Artisan 命令行上的 –timeout 開關來指定:php artisan queue:work --timeout=30 但是,你也可以定義允許任務在任務類本身上運行的最大秒數。如...
http://m.o2fo.com/laravel_8/laravel_8-hrm63hui.html...用哪個連接。傳遞給 work 命令的連接名應該與 config/queue.php 配置文件中定義的一個連接相對應:php artisan queue:work redis 你甚至可以通過僅處理特定連接的特定隊列來進一步定制你的隊列任務處理器。例如,如果你所有的電子郵件...
http://m.o2fo.com/laravel_8/laravel_8-xwmd3huz.html使用 make:migration Artisan 命令 命令來創(chuàng)建遷移:php artisan make:migration create_users_table 提示:遷移 stubs 必須使用 stub publishing 進行自定義。 --table 和 --create 選項也可用于確定表的名稱以及是否在遷移中創(chuàng)建新的數據表。這些選項用...
http://m.o2fo.com/laravel_8/laravel_8-s4oc3hzb.html...到最后 「一批」 的遷移,這可能會包含多個遷移文件:php artisan migrate:rollback 通過向 rollback 命令加上 step 參數,可以回滾指定數量的遷移。例如,以下命令將回滾最后五個遷移:php artisan migrate:rollback --step=5Copy如果您在遷移后...
http://m.o2fo.com/laravel_8/laravel_8-426e3hzd.html...據庫之后,對后面新增的遷移文件進行遷移。示例: php artisan migrate:refresh// 上列是刷新當前已有的遷移,下列是刷新當前已有的遷移后,更新未有的遷移 php artisan migrate:refresh --seed 在 migrate:refresh 中,您還可以使用 step 參數來...
http://m.o2fo.com/laravel_8/laravel_8-bxpv3hzh.html...,你也可以使用 --class 選項來指定一個特定的 seeder 類:php artisan db:seed php artisan db:seed --class=UserSeeder 你也可以用 migrate:fresh 這個命令來填充數據庫,這將刪除所有表并重新運行所有遷移。這個命令可以用來重建數據庫:php artisan...
http://m.o2fo.com/laravel_8/laravel_8-2wdv3i0c.html要使用 PhpRedis 擴展,需要將配置文件 config/database.php 中 Redis 配置的 REDIS_CLIENT 選項修改為 phpredis:'redis' => [ 'client' => env('REDIS_CLIENT', 'phpredis'), // 剩下的 Redis 配置... ], 如果您打算將 PhpRedis 擴展名與 R...
http://m.o2fo.com/laravel_8/laravel_8-ahke3i0k.html抱歉,暫時沒有相關的微課
w3cschool 建議您:
抱歉,暫時沒有相關的視頻課程
w3cschool 建議您:
抱歉,暫時沒有相關的教程
w3cschool 建議您:
你可以在 config/hashing.php 配置文件中配置默認哈希驅動程序。目前支持三種驅動程序: Bcrypt 和 Argon2 (Argon2i and Argon2id variants)。 注意:Argon2i 驅動程序需要 PHP 7.2.0 或更高版本,而 Argon2id 驅動程序則需要 PHP 7.3.0 或更高版本。
http://m.o2fo.com/laravel_8/laravel_8-9bhx3h5e.html...閉包命令可以說是命令類的替代方法。在 app/Console/Kernel.php 文件中的 commands 方法中,Laravel 加載了 routes/console.php 文件:/** * 注冊閉包命令 * * @return void */ protected function commands() { require base_path('routes/console.php'); }Copy盡管該...
http://m.o2fo.com/laravel_8/laravel_8-bwv23h6a.html...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://m.o2fo.com/laravel_8/laravel_8-kj7f3htq.html注意:必須安裝 PHP 擴展 pcntl 才能指定任務超時。 同樣,任務可以運行的最大秒數可以使用 Artisan 命令行上的 –timeout 開關來指定:php artisan queue:work --timeout=30 但是,你也可以定義允許任務在任務類本身上運行的最大秒數。如...
http://m.o2fo.com/laravel_8/laravel_8-hrm63hui.html...用哪個連接。傳遞給 work 命令的連接名應該與 config/queue.php 配置文件中定義的一個連接相對應:php artisan queue:work redis 你甚至可以通過僅處理特定連接的特定隊列來進一步定制你的隊列任務處理器。例如,如果你所有的電子郵件...
http://m.o2fo.com/laravel_8/laravel_8-xwmd3huz.html使用 make:migration Artisan 命令 命令來創(chuàng)建遷移:php artisan make:migration create_users_table 提示:遷移 stubs 必須使用 stub publishing 進行自定義。 --table 和 --create 選項也可用于確定表的名稱以及是否在遷移中創(chuàng)建新的數據表。這些選項用...
http://m.o2fo.com/laravel_8/laravel_8-s4oc3hzb.html...到最后 「一批」 的遷移,這可能會包含多個遷移文件:php artisan migrate:rollback 通過向 rollback 命令加上 step 參數,可以回滾指定數量的遷移。例如,以下命令將回滾最后五個遷移:php artisan migrate:rollback --step=5Copy如果您在遷移后...
http://m.o2fo.com/laravel_8/laravel_8-426e3hzd.html...據庫之后,對后面新增的遷移文件進行遷移。示例: php artisan migrate:refresh// 上列是刷新當前已有的遷移,下列是刷新當前已有的遷移后,更新未有的遷移 php artisan migrate:refresh --seed 在 migrate:refresh 中,您還可以使用 step 參數來...
http://m.o2fo.com/laravel_8/laravel_8-bxpv3hzh.html...,你也可以使用 --class 選項來指定一個特定的 seeder 類:php artisan db:seed php artisan db:seed --class=UserSeeder 你也可以用 migrate:fresh 這個命令來填充數據庫,這將刪除所有表并重新運行所有遷移。這個命令可以用來重建數據庫:php artisan...
http://m.o2fo.com/laravel_8/laravel_8-2wdv3i0c.html要使用 PhpRedis 擴展,需要將配置文件 config/database.php 中 Redis 配置的 REDIS_CLIENT 選項修改為 phpredis:'redis' => [ 'client' => env('REDIS_CLIENT', 'phpredis'), // 剩下的 Redis 配置... ], 如果您打算將 PhpRedis 擴展名與 R...
http://m.o2fo.com/laravel_8/laravel_8-ahke3i0k.html抱歉,暫時沒有相關的文章
w3cschool 建議您: