承接 laranext/span 相关项目开发

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

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

laranext/span

Composer 安装命令:

composer require laranext/span

包简介

Laranext span is based on reusable plug and play system.

README 文档

README

Total Downloads Latest Stable Version License

Introduction - Span

Laranext Span is module based approach, restful code separation, plug & play.

code separation like routes, controllers, models, resources, views, migrations

for example we have admin package and it will load with /admin key.

let's have a try.

Getting Started

To install through Composer, by run the following command:

composer require laranext/span

then run install command to publish config file.

php artisan span:install

Create span package with your package name

php artisan span:package admin

if you will not choose any stub then default laravel package will be create.

after creating package we need to register in our config/span.php providers.

'providers' => [
    'admin' => Admin\AdminServiceProvider::class,
],

then visit /admin in the browser.

Generate Comands

it will work like default laravel artisan make commands.

the only difference is after class name we need package name too.

Controller

# Generate a controller class...
php artisan span:controller PhotoController admin

# Generate a resource controller class...
php artisan span:controller PhotoController admin --resource

# Generate a model and resource controller class...
php artisan span:controller PhotoController admin --resource --model=Photo

# Generate an api controller class...
php artisan span:controller Api/PhotoController admin --api

# Generate a invokable controller class...
php artisan span:controller ShowHomepage admin --invokable

Model

# Generate a model class...
php artisan span:model Flight admin

# Generate a model and a migration class...
php artisan span:model Flight admin --migration

# Generate a model and a FlightController class...
php artisan span:model Flight admin --controller

Migration

php artisan span:migration create_flights_table admin

Why

why i created this over laranext, because laranext is little advance and not native for laravel developers.

Span is the same concept used by the laranext but it's more close to native laravel.

we can say it's only separation of code if we needed, it's totally optional.

laranext is still under production and not available publicly at the moment.

Credits

License

Laranext Span is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固