Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetFinalPriceAttribute(){
- $includetax =General::all()->first()->istaxincluded
- if($includetax) return 1
- return 0.5
- }
- MyConfig::get('istaxincluded');
- function get($param){
- if(isset($this->config['param']){
- return $this->config['param'];
- }
- use MyConfig;
- ...
- MyConfig::get($parameter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement