App下載

詞條

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

4271.Laravel 8 處理給定數(shù)量的任務(wù)

...e 參數(shù)可以用來指定任務(wù)處理器只處理一個隊列中的任務(wù):php artisan queue:work --once --max-jobs 參數(shù)可以指定任務(wù)處理器處理了多少個任務(wù)后關(guān)閉。這個參數(shù)可以用來結(jié)合 Supervisor 設(shè)置任務(wù)處理器執(zhí)行多少個任務(wù)后重啟:php artisan queue:w...

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

4272.Laravel 8 定義調(diào)度

...閉包 中,我們會執(zhí)行一個數(shù)據(jù)庫查詢來清空一張表:<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\DB; class Kernel extends ConsoleKernel { /** * 應(yīng)用中自定...

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

4273.Laravel 8 連接到數(shù)據(jù)庫 CLI

如果要連接到數(shù)據(jù)庫的 CLI,可以使用 db Artisan 命令:php artisan db 如果需要,可以指定數(shù)據(jù)庫連接名稱以連接到不是默認(rèn)連接的數(shù)據(jù)庫連接:php artisan db mysql

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

4274.Laravel 8 從一個數(shù)據(jù)表中獲取所有行

...鏈?zhǔn)秸{(diào)用更多的約束,最后使用 get 方法獲取結(jié)果:<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; class UserController extends Controller { /** * 展示用戶列表 * * @return Response */ public function index() { $u...

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

4275.Laravel 8 自定義分頁視圖

... vendor:publish 命令將它們輸出到 resources/views/vendor 目錄:php artisan vendor:publish --tag=laravel-pagination 這個命令將在 resources/views/vendor/pagination 目錄中放置這些視圖。內(nèi)置在該目錄下的 tailwind.blade.php 文件提供了默認(rèn)的分頁視圖。你可以...

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

4276.Laravel 8 遷移轉(zhuǎn)儲(遷移合并)

...。進行這個操作,需要執(zhí)行的命令是:schema:dump。示例:php artisan schema:dump // 上面示例為轉(zhuǎn)儲但不刪除原有遷移文件,下面示例為轉(zhuǎn)儲且刪除原有遷移文件 php artisan schema:dump --prune 在執(zhí)行以上命令后,laravel 將會把轉(zhuǎn)儲后的 SQL 文...

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

4277.Laravel 8 使用一個命令同時進行刪除和遷移操作

...成數(shù)據(jù)庫之后,對后面新增的遷移文件進行遷移。示例:php artisan migrate:fresh // 上列是刷新當(dāng)前已有的遷移,下列是刷新當(dāng)前已有的遷移后,更新未有的遷移。 php artisan migrate:fresh --seed

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

4278.Laravel 8 編寫 Seeders

...成 Seeder,框架生成的 seeders 都放在 database/seeds 目錄下:php artisan make:seeder UserSeeder seeder 類只包含一個默認(rèn)方法:run 。這個方法會在執(zhí)行 db:seed 這個 Artisan 命令 時被調(diào)用。在 run 方法里你可以根據(jù)需要在數(shù)據(jù)庫中插入數(shù)據(jù)。你也...

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

4279.Laravel 8 日期轉(zhuǎn)換器

... created_at 和 updated_at 字段轉(zhuǎn)換為 Carbon 實例, 它繼承了 PHP 原生的 DateTime 類并提供了各種有用的方法。 你可以通過設(shè)置模型的 $dates 屬性來添加其他日期屬性: <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class User extends...

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

4280.Laravel 8 資源集合

...源集合繼承自 Illuminate\Http\Resources\Json\ResourceCollection 類:php artisan make:resource Users --collection php artisan make:resource UserCollection

http://www.o2fo.com/laravel_8/laravel_8-4kc83i8j.html

抱歉,暫時沒有相關(guān)的微課

w3cschool 建議您:

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

抱歉,暫時沒有相關(guān)的視頻課程

w3cschool 建議您:

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

抱歉,暫時沒有相關(guān)的教程

w3cschool 建議您:

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

4271.Laravel 8 處理給定數(shù)量的任務(wù)

...e 參數(shù)可以用來指定任務(wù)處理器只處理一個隊列中的任務(wù):php artisan queue:work --once --max-jobs 參數(shù)可以指定任務(wù)處理器處理了多少個任務(wù)后關(guān)閉。這個參數(shù)可以用來結(jié)合 Supervisor 設(shè)置任務(wù)處理器執(zhí)行多少個任務(wù)后重啟:php artisan queue:w...

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

4272.Laravel 8 定義調(diào)度

...閉包 中,我們會執(zhí)行一個數(shù)據(jù)庫查詢來清空一張表:<?php namespace App\Console; use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Support\Facades\DB; class Kernel extends ConsoleKernel { /** * 應(yīng)用中自定...

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

4273.Laravel 8 連接到數(shù)據(jù)庫 CLI

如果要連接到數(shù)據(jù)庫的 CLI,可以使用 db Artisan 命令:php artisan db 如果需要,可以指定數(shù)據(jù)庫連接名稱以連接到不是默認(rèn)連接的數(shù)據(jù)庫連接:php artisan db mysql

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

4274.Laravel 8 從一個數(shù)據(jù)表中獲取所有行

...鏈?zhǔn)秸{(diào)用更多的約束,最后使用 get 方法獲取結(jié)果:<?php namespace App\Http\Controllers; use App\Http\Controllers\Controller; use Illuminate\Support\Facades\DB; class UserController extends Controller { /** * 展示用戶列表 * * @return Response */ public function index() { $u...

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

4275.Laravel 8 自定義分頁視圖

... vendor:publish 命令將它們輸出到 resources/views/vendor 目錄:php artisan vendor:publish --tag=laravel-pagination 這個命令將在 resources/views/vendor/pagination 目錄中放置這些視圖。內(nèi)置在該目錄下的 tailwind.blade.php 文件提供了默認(rèn)的分頁視圖。你可以...

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

4276.Laravel 8 遷移轉(zhuǎn)儲(遷移合并)

...。進行這個操作,需要執(zhí)行的命令是:schema:dump。示例:php artisan schema:dump // 上面示例為轉(zhuǎn)儲但不刪除原有遷移文件,下面示例為轉(zhuǎn)儲且刪除原有遷移文件 php artisan schema:dump --prune 在執(zhí)行以上命令后,laravel 將會把轉(zhuǎn)儲后的 SQL 文...

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

4277.Laravel 8 使用一個命令同時進行刪除和遷移操作

...成數(shù)據(jù)庫之后,對后面新增的遷移文件進行遷移。示例:php artisan migrate:fresh // 上列是刷新當(dāng)前已有的遷移,下列是刷新當(dāng)前已有的遷移后,更新未有的遷移。 php artisan migrate:fresh --seed

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

4278.Laravel 8 編寫 Seeders

...成 Seeder,框架生成的 seeders 都放在 database/seeds 目錄下:php artisan make:seeder UserSeeder seeder 類只包含一個默認(rèn)方法:run 。這個方法會在執(zhí)行 db:seed 這個 Artisan 命令 時被調(diào)用。在 run 方法里你可以根據(jù)需要在數(shù)據(jù)庫中插入數(shù)據(jù)。你也...

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

4279.Laravel 8 日期轉(zhuǎn)換器

... created_at 和 updated_at 字段轉(zhuǎn)換為 Carbon 實例, 它繼承了 PHP 原生的 DateTime 類并提供了各種有用的方法。 你可以通過設(shè)置模型的 $dates 屬性來添加其他日期屬性: <?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class User extends...

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

4280.Laravel 8 資源集合

...源集合繼承自 Illuminate\Http\Resources\Json\ResourceCollection 類:php artisan make:resource Users --collection php artisan make:resource UserCollection

http://www.o2fo.com/laravel_8/laravel_8-4kc83i8j.html

抱歉,暫時沒有相關(guān)的文章

w3cschool 建議您:

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

熱門課程