Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. public function __construct($attributes = array()){
  2.  
  3. $this->path = url('img/' . $this->{'file-name'});
  4. parent::__construct($attributes);
  5.  
  6. }
  7.  
  8. {
  9. id: 25,
  10. text: "A lovely file",
  11. file-name: "file.jpg",
  12. created_at: "2016-02-12 11:44:37",
  13. updated_at: "2016-02-12 11:44:37"
  14. },
  15.  
  16. {
  17. id: 25,
  18. text: "A lovely file",
  19. file-name: "file.jpg",
  20. path: "http://myapp.app:8000/img/file.jpg",
  21. created_at: "2016-02-12 11:44:37",
  22. updated_at: "2016-02-12 11:44:37"
  23. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement