Skip to content

Commit

Permalink
Add helper function for Laravel users
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyWay committed Feb 1, 2015
1 parent 5ee8dd8 commit fbf45c9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion composer.json
Expand Up @@ -18,7 +18,10 @@
"autoload": {
"psr-0": {
"Laracasts\\Flash": "src/"
}
},
"files": [
"src/Laracasts/Flash/functions.php"
]
},
"minimum-stability": "stable"
}
15 changes: 15 additions & 0 deletions src/Laracasts/Flash/functions.php
@@ -0,0 +1,15 @@
<?php

if ( ! function_exists('flash')) {

/**
* Arrange for a flash message.
*
* @return \Laracasts\Flash\FlashNotifier
*/
function flash()
{
return app('flash');
}

}

0 comments on commit fbf45c9

Please sign in to comment.