wearedevtical/laravel-helpers 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

wearedevtical/laravel-helpers

最新稳定版本:2.0.0

Composer 安装命令:

composer require wearedevtical/laravel-helpers

包简介

Helper Generator for Laravel

README 文档

README

Helper Generator for Laravel

Installation

Install via composer

composer require devtical/laravel-helpers

Optional

Publish the config by running the php artisan vendor:publish command.

Configure your helper directory:

# In your .env file
HELPER_DIRECTORY=Helpers

Usage

Create your first helper file:

php artisan make:helper <NAME>

Add your helper functions:

<?php

if (!function_exists('str_slug')) {
    function str_slug($text, $separator = '-')
    {
        return Str::slug($text, $separator);
    }
}

Use your helper functions anywhere:

// In your controllers, models, views, etc.
$slug = str_slug('Hello World'); // Returns: hello-world

Please see the changelog for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover any security related issues, please email author instead of using the issue tracker.

Credits

License

This package is open-sourced software licensed under the MIT license.

Support

If you have any questions or need help, please open an issue on GitHub.

统计信息

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

GitHub 信息

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

其他信息

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