2017 © Pedro Peláez
 

library lego

Yet another CRUD widgets for laravel 5.2+

image

wutongwan/lego

Yet another CRUD widgets for laravel 5.2+

  • Monday, July 2, 2018
  • by YuBing
  • Repository
  • 12 Watchers
  • 104 Stars
  • 3,556 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 26 Forks
  • 15 Open issues
  • 87 Versions
  • 44 % Grown

The README.md

Laravel-Lego

tests Latest Stable Version Total Downloads, (*1)


注意:lego 尚处于开发阶段,1.0版本发布之前主要接口仍有调整的可能性,请注意查看 release note !, (*2)


Example

  • UserController.php
$form = Lego::form(new User());

$form->addText('number', '编号')->required()->rule('numeric')->unique();
$form->addText('email', '邮箱')->required()->rule('email')->unique();

return $form->view('layout', ['form' => $form]);
  • layout.blade.php
<!doctype html>
<html lang="en">
<head>
    <title>Lego Form</title>
    @include('lego::styles')
</head>
<body>
    {!! $form !!}
    @include('lego::scripts')
</body>
</html>

image, (*3)

Required

  • php >= 7.1
  • Laravel >= 6.0

Installment

1、Composer

composer require wutongwan/lego

2、Publish lego assets

php artisan vendor:publish --tag=lego-assets --force

Tips:, (*4)

To keep the assets up-to-date and avoid issues in future updates, you may add the command to the post-update-cmd scripts in your composer.json file:, (*5)

{
     "scripts": {
         "post-update-cmd": [
             "@php artisan vendor:publish --tag=lego-assets --force"
         ]
     }
 }

Documents

Development

  • 分支, (*6)

    • master, 在 master 下开发及维护
  • 当前版本在以下环境中开发并维护, (*7)

    • Mac
    • Ubuntu
  • Run Demo, (*8)

    php demo/run.php [--host=127.0.0.1] [--port=8080]
    

起因

用了快一年的zofe/rapyd-laravel,整体觉得非常好用,但内部确实不少代码年久失修,比较脏,有的组件也不适合中国的情况(比如google map)。, (*9)

所以我们几个小伙伴想了很久,还是决定重新造个轮子,参考rapyd的思路,做一个我们自己用着更顺手的脚手架库。, (*10)

起名Lego,也是向乐高致敬,能用简单的Block搭建摩天大厦是我们的梦想。, (*11)

现在整体代码还是非常初级的版本,有兴趣的朋友欢迎关注以及和我们讨论,但由于整个项目是以提高团队自身效率为最优先前提的,可能我们会独断一些,不会刻意的做的太通用。, (*12)

The Versions

11/02 2017

0.1.9

0.1.9.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

09/02 2017

0.1.8

0.1.8.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

09/02 2017

0.1.7

0.1.7.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

13/12 2016

0.1.6

0.1.6.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

13/12 2016

0.1.7.beta

0.1.7.0-beta https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

08/12 2016

0.1.5

0.1.5.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

27/11 2016

0.1.4

0.1.4.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

11/11 2016

0.1.3

0.1.3.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

11/11 2016

0.1.2

0.1.2.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

10/11 2016

0.1.1

0.1.1.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

08/11 2016

0.1.0

0.1.0.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.2+

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin

27/01 2016

0.0.1

0.0.1.0 https://github.com/wutongwan/laravel-lego

Yet another CRUD widgets for laravel 5.x

  Sources   Download

MIT

The Requires

 

The Development Requires

crud widget admin