08/06
2015
Wallogit.com
2017 © Pedro Peláez
A PHP package mainly developed for Laravel to skip the same task during an access., (*1)
After installation using composer, add the followings to the array in app/config/app.php, (*2)
'providers' => array(
...Others...,
'Sukohi\Encore\EncoreServiceProvider',
)
Also, (*3)
'aliases' => array(
...Others...,
'Encore' => 'Sukohi\Encore\Facades\Encore',
)
$data = Encore::get('numbers', function(){ // Called
return [
'1' => 'one',
'2' => 'two',
'3' => 'three',
];
});
print_r($data);
$data = Encore::get('numbers', function(){ // Not called here
return [
'1' => 'one',
'2' => 'two',
'3' => 'three',
];
});
print_r($data);
This package is licensed under the MIT License., (*4)
Copyright 2015 Sukohi Kuhoh, (*5)