/home/techb158/ileadtechnology.com/vendor/realrashid/sweet-alert/docs
NameSizeModeActions
css/-0755rm
imgs/-0755rm
.nojekyll00644editdlrm
carbonad.js22360644editdlrm
changelog.md39550644editdlrm
config.md6140644editdlrm
credits.md7920644editdlrm
demo.md30410644editdlrm
enterprise.md6060644editdlrm
environment.md65940644editdlrm
helpers.md45920644editdlrm
index.html40720644editdlrm
install.md7040644editdlrm
middleware.md37100644editdlrm
README.md20500644editdlrm
sw.js30920644editdlrm
tutorial.md31160644editdlrm
usage.md16780644editdlrm
_coverpage.md3810644editdlrm
_sidebar.md5440644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/realrashid/sweet-alert/docs/usage.md (1678B)
# Usage #### Using Facade Import Alert Facade first! ```php use RealRashid\SweetAlert\Facades\Alert; ``` or ```php Use Alert; ``` in your controller method ```php Alert::alert('Title', 'Message', 'Type'); ``` ```php Alert::success('Success Title', 'Success Message'); ``` ```php Alert::info('Info Title', 'Info Message'); ``` ```php Alert::warning('Warning Title', 'Warning Message'); ``` ```php Alert::error('Error Title', 'Error Message'); ``` ```php Alert::question('Question Title', 'Question Message'); ``` ```php Alert::image('Image Title!','Image Description','Image URL','Image Width','Image Height'); ``` ```php Alert::html('Html Title', 'Html Code', 'Type'); ``` ```php Alert::toast('Toast Message', 'Toast Type'); ``` > Set the Default Toast Position in `config/sweetalert.php` file OR use the `position()` helper method! ### Using the helper function #### Alert ```php alert('Title','Lorem Lorem Lorem', 'success'); ``` ```php alert()->success('Title','Lorem Lorem Lorem'); ``` ```php alert()->info('Title','Lorem Lorem Lorem'); ``` ```php alert()->warning('Title','Lorem Lorem Lorem'); ``` ```php alert()->error('Title','Lorem Lorem Lorem'); ``` ```php alert()->question('Title','Lorem Lorem Lorem'); ``` ```php alert()->image('Image Title!','Image Description','Image URL','Image Width','Image Height'); ``` ```php alert()->html('HTML example'," You can use bold text, links and other HTML tags ",'success'); ``` #### Toast ```php toast('Your Post as been submited!','success'); ``` > Set the Default Toast Position in `config/sweetalert.php` file OR use the `position()` helper method!