blinktag/laravel-lazydev
Composer 安装命令:
composer require blinktag/laravel-lazydev
包简介
Finds TODO and FIXME annotations that past-you left in the code for future-you to deal with
README 文档
README
Finds TODO and FIXME annotations that past-you left in the code for future-you to deal with
Install
composer require-dev blinktag/laravel-lazydev:dev-master
Laravel < 5.5:
'providers' => [
// ...
Blinktag\Providers\FindTodosServiceProvider::class,
],
Laravel >= 5.5
The package will be autodiscovered
Configuration
If you wish to change the strings this tool searches for, publish the configuration and then edit the value of find_strings in config/findtodos.php. Each term should be separated by a pipe character
php artisan vendor:publish --tag=findtodos
Usage
Add comments in your code that begin with TODO, or FIXME, like so:
<?php
...
public function calculateStore(int $total)
{
...
// TODO: This method is broken when the input is a negative value
...
}
...
You can then find these comments later on using the command
php artistan find:todos
...
/Users/blinktag/Sites/compucorp/app/User.php
TODO Line 53: Refactor this once permissions have been fleshed out
/Users/blinktag/Sites/compucorp/app/Ticket.php
FIXME Line 109: This method is broken when the input is a negative value
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-02-03