tegarkurniawan

branch model

Feb 18th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. <?php
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Branch extends Model {
  8.  
  9. protected $fillable = [
  10. 'client_id',
  11. 'foursquare_id',
  12. 'address',
  13. 'village',
  14. 'sub_district',
  15. 'province',
  16. 'phone',
  17. 'fax',
  18. 'geo_location',
  19. 'latitude',
  20. 'longitude',
  21. 'status',
  22. ];
  23. protected $table = 'branchs';
  24.  
  25. public function client() {
  26.  
  27. return $this->belongsTo('App\Client', 'client_id', 'id');
  28. }
  29.  
  30.  
  31.  
  32.  
  33. }
Advertisement
Add Comment
Please, Sign In to add comment