定制 elegasoft/common-laravel-tools 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

elegasoft/common-laravel-tools

Composer 安装命令:

composer require elegasoft/common-laravel-tools

包简介

A collection of common tools for Laravel projects.

README 文档

README

A collection of common tools for Laravel projects.

Installation

Install via composer:

composer require elegasoft/common-laravel-tools

Register the service provider in app/config/app.php:

Elegasoft\CommonLaravelTools\ToolServiceProvider::class,

Register the exception handlers in app/Exceptions/Handler.php

#!php

use Elegasoft\CommonLaravelTools\CommonExceptionHandler;

...

public function render($request, Exception $exception)
    {
        $handler = new CommonExceptionHandler($exception);
        if($handler->catchesException()){
            return $handler->resolve();
        };
        return parent::render($request, $exception);
    }

Publish the config and view files:

php artisan vendor:publish --provider='Elegasoft\CommonLaravelTools\ToolServiceProvider' 

Alert Messaging

Using alert messaging alone does not require registering the service provider or publishing the config, but the views must be published.

Publish the alert view files (if not published during installation)

php artisan vendor:publish --provider='Elegasoft\CommonLaravelTools\ToolServiceProvider' --tag=views

Include the alert views to the in your master blade layout file:

@include('common-laravel-tools::alerts.all')

Dismissable alerts can be thrown from any controller.

## Info Alert ##

return redirect()->back()->with('alert-info','Here's an info alert.')

## Success Alert ##

return redirect()->back()->with('alert-success','Here's an success alert!')

## Warning Alert ##

return redirect()->back()->with('alert-warning','Here's an warning alert.')

## Danger Alert ##

return redirect()->back()->with('alert-danger','Here's an danger alert!')

User Authentication

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固