Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Branch extends Model {
- protected $fillable = [
- 'client_id',
- 'foursquare_id',
- 'address',
- 'village',
- 'sub_district',
- 'province',
- 'phone',
- 'fax',
- 'geo_location',
- 'latitude',
- 'longitude',
- 'status',
- ];
- protected $table = 'branchs';
- public function client() {
- return $this->belongsTo('App\Client', 'client_id', 'id');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment