2017 © Pedro Peláez
 

library common-laravel-tools

A collection of common tools for Laravel projects.

image

elegasoft/common-laravel-tools

A collection of common tools for Laravel projects.

  • Monday, January 30, 2017
  • by elegasoft
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

common-laravel-tools

A collection of common tools for Laravel projects., (*1)

Installation

Install via composer:, (*2)

composer require elegasoft/common-laravel-tools

Register the service provider in app/config/app.php:, (*3)

Elegasoft\CommonLaravelTools\ToolServiceProvider::class,

Register the exception handlers in app/Exceptions/Handler.php, (*4)

#!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:, (*5)

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), (*6)

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

Include the alert views to the in your master blade layout file:, (*7)

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

Dismissable alerts can be thrown from any controller., (*8)

## 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

The Versions

30/01 2017

dev-master

9999999-dev

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

27/01 2017

dev-auth

dev-auth

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

27/01 2017

dev-storage

dev-storage

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

25/01 2017

v0.1.4

0.1.4.0

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

25/01 2017

v0.1.3

0.1.3.0

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

25/01 2017

v0.1.2

0.1.2.0

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

25/01 2017

v0.1.1

0.1.1.0

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason

25/01 2017

v0.1

0.1.0.0

A collection of common tools for Laravel projects.

  Sources   Download

MIT

The Requires

 

by Avatar Jason