Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. GetFinalPriceAttribute(){
  2. $includetax =General::all()->first()->istaxincluded
  3.  
  4. if($includetax) return 1
  5. return 0.5
  6. }
  7.  
  8. MyConfig::get('istaxincluded');
  9.  
  10. function get($param){
  11. if(isset($this->config['param']){
  12. return $this->config['param'];
  13. }
  14.  
  15. use MyConfig;
  16. ...
  17. MyConfig::get($parameter);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement