承接 adamrollinson/laravel-cloudflare-driver 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

adamrollinson/laravel-cloudflare-driver

最新稳定版本:v1.0.3

Composer 安装命令:

composer require adamrollinson/laravel-cloudflare-driver

包简介

Laravel integration for Cloudflare Workers services

README 文档

README

Installation

You can install the package via composer:

composer require adamrollinson/laravel-cloudflare-driver

In your config/database.php file, add the following to the connections array:

'd1' => [
    'driver' => 'd1',
    'prefix' => '',
    'database' => env('CLOUDFLARE_D1_DATABASE_ID', ''),
    'api' => env('CLOUDFLARE_D1_API', 'https://api.cloudflare.com/client/v4'),
    'auth' => [
        'token' => env('CLOUDFLARE_TOKEN', ''),
        'account_id' => env('CLOUDFLARE_ACCOUNT_ID', ''),
    ],
],

In your .env file, add the following:

CLOUDFLARE_TOKEN=
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_D1_DATABASE_ID=

Commands

php artisan d1:migrate
php artisan d1:migrate refresh
php artisan d1:migrate reset
php artisan d1:migrate rollback
php artisan d1:migrate status

php artisan make:d1 {name}

Command Options

d1:migrate

--connection= : The database connection to use
--force : Force the operation to run when in production

make:d1

--name= : The name of the migration file

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-01-15