Created
March 4, 2015 13:17
-
-
Save ziyahan/092b9e8f603ec04504f5 to your computer and use it in GitHub Desktop.
Role
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php namespace App\DBModel; | |
use Illuminate\Database\Eloquent\Model; | |
class Role extends Model { | |
// | |
public $timestamps = false; | |
public function user() | |
{ | |
return $this->hasMany('App\DBModel\User'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment