New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

hoanghiep/controller

create controller in laravel --method all
7

Larablocks Analysis

hoanghiep/controller has no release yet to check Laravel compatibility against.

Recommendation checks

Use with care

Use with care: meets 0 of 3 checks.

  • No dated releases
  • 0 downloads a month (needs 10,000)
  • 0 GitHub stars (needs 100)

Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.

Install
composer require hoanghiep/controller:dev-master
License:MIT
Last Updated:Aug 20, 2016
Links: GitHub  ·  Packagist
Maintainer: thandonguocmo2020

make-controller-laravel

tạo controller từ file controller mẫu

Cài đặt

composer require hoanghiep/controller "dev-master"

b2. Chạy lệnh composer

composer dump-autoload

b3. Đăng ký một dịch vụ mới config/app.php

'providers' => [ /***** ****/ Hoanghiep\Controller\HoanghiepControllerProvider::class, ]

b4. Chạy lệnh xuất bản các tập tin cần thiết

php artisan vendor:publish render :

file_1 : config/hoanghiep.php => config path class controller old and controller new file_2 : app/console/Commands/ControllerCommand.php => setting artisan. file_3 : hoanghiep/controller/template => layout

b5. Thiết lập chuẩn bị tập tin controller mẫu :

Vào config/hoanghiep.php

template_controller_old => file controlller mẫu để sao chép function và method :

namespace_old => namespace tìm kiếm trong template_controller_old để thay thế.

class_controller_old => name class file mẫu template_controller_old để tìm kiếm thay thế

namespace_news => nơi file controller sẽ được tạo ra.

b6. thêm lệnh arrtisan vào App\Console\Kernel.php

thêm class Commands\ControllerCommand::class trong protected $commands

protected $commands = [
    // Commands\Inspire::class,
     Commands\ControllerCommand::class
];

b7: Chạy lệnh để tạo ra một file controller mới giống như controller mẫu.

syntax artisan :

php artisan make:controllers name_class

Namespace == config/hoanghiep.php => namespace_news

1 file controller == namespace_news/name_class

END. một file controller mới được tạo ra giống với file controller mẫu.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660