承接 macropay-solutions/laravel-crud-wizard-client-free 相关项目开发

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

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

macropay-solutions/laravel-crud-wizard-client-free

最新稳定版本:1.0.7

Composer 安装命令:

composer require macropay-solutions/laravel-crud-wizard-client-free

包简介

Request builder for calling projects that implement macropay-solutions/laravel-crud-wizard-free

README 文档

README

Total Downloads Latest Stable Version License

This is a stripped down version of maravel-rest-wizard-client

and can be used for calling laravel-crud-wizard-free

Install

composer require macropay-solutions/laravel-crud-wizard-client-free

Start using it

    $crud = new \MacroPaySolutions\LaravelCrudWizardClient\RequestBuilder(\env('API_BEARER'), \env('APP_URL'));

    try {
        $result = $crud->list('clients', $crud->getBuilder()->sort('country', 'asc')
            ->sort('zip')->equals('name', 'alt')->withRelation('relation')
            ->withRelations(['rel1', 'rel2'])
            ->addCountRelations(['relation1'])->addExistRelation('relation2');
        $result = $crud->get('clients', '73', ['rel1', 'rel2']);
        $result = $crud->delete('clients', '73');
        $result = $crud->create('clients', [
            'active' => '1',
            'name' => 'abc',
            // ...
        ]);
        $result = $crud->update('clients', '73', [
            'active' => '1',
            'name' => 'abc',
            // ...
        ]);
    } catch (\Exception $e) {
        $decodedErrorMessage = \json_decode($e->getMessage());
        echo $decodedErrorMessage->message;
    }

    $decodedResult = \json_decode($result);

Discover more methods available by installing it.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-25