fix bug helper function
This commit is contained in:
commit
9bb9728264
7 files changed
+1854
No files matched your search
Executable
+1547
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace Hekmatinasser\Verta;
|
||||
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class VertaServiceProvider extends ServiceProvider
|
||||
{
|
||||
/**
|
||||
* Bootstrap the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
/**
|
||||
* Register the application services.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
$this->app->bind('verta', function ($app) {
|
||||
return new Verta;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the services provided by the provider.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function provides()
|
||||
{
|
||||
return array('verta');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
if (! function_exists('verta')) {
|
||||
/**
|
||||
* @param string $str
|
||||
* @return \Hekmatinasse\Verta\Verta
|
||||
*/
|
||||
function verta($string = null)
|
||||
{
|
||||
return \Hekmatinasser\Verta\Verta::instance($string);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user