rezaar / larasweetalert
A package that provides a simple Alerts
1.0.0
2015-11-16 10:28 UTC
This package is not auto-updated.
Last update: 2024-11-13 19:30:21 UTC
README
Cara install ?
- ketik composer require rezaar/larasweetalert dev-master di command prompt
- register service provider dan facade nya rezaar\larasweetalert\LarasweetalertProvider::class (provider) ,'sweet' => rezaar\larasweetalert\LarasweetalertFacade::class (facade)
- tambah kan script berikut di autload psr4 di composer.json anda "rezaar\larasweetalert\" : "vendor/rezaar/larasweetalert/src", buka command prompt ketik composer dumpautoload
- download plugin sweetalert di sini
- import js dan css nya di layout anda
<script src="/sweetalert/dist/sweetalert.min.js"></script>
,<link rel="/sweetalert/stylesheet" type="text/css" href="dist/sweetalert.css">
cara penggunaan :
basic :
<?php echo sweet::alert(['title' => 'this title' , 'text' => 'Hello World' ,'type' => 'success']) ?>
atau {!! sweet::alert(['title' => 'this title' , 'text' => 'Hello World' ,'type' => 'success']) !!}