tugumuda/helpers

Kumpulan laravel helpers

Installs: 172

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

Open Issues: 0

Language:JavaScript

5.2.1 2018-07-24 04:10 UTC

This package is auto-updated.

Last update: 2024-04-23 11:48:16 UTC


README

License Total Downloads Latest Stable Version Latest Unstable Version

Installation

Require this package with composer.

composer require tugumuda/helpers

Laravel 5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

For Laravel < 5.5, please use the 5.1 branch!

Laravel 5.5+:

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

Collective\Html\HtmlServiceProvider::class,
Tugumuda\Helpers\ServiceProvider::class,

If you want to use the facade, add this to your facades in app.php:

'BSForm' => Tugumuda\Helpers\Facades\BSFormFacade::class,
'TMFormatter' => Tugumuda\Helpers\Facades\FormatterFacade::class,
'TMConverter' => Tugumuda\Helpers\Facades\ConverterFacade::class,

Usage

You can now add messages using the Facade (when added):

BSForm

BSForm::label('fullname', 'Fullname:');
BSForm::text('fullname', 'Angger Priyardhan Putro');

BSForm::textGroup('fullname', 'Fullname:', 'Angger Priyardhan Putro');

Converter

TMConverter::int2money('100000');
TMConverter::array2object(['name' => 'Angger', 'email' => 'anggerpputro@gmail.com']);