Last change
on this file since f457265 was f457265, checked in by Berat Kjufliju <kufliju@…>, 4 years ago |
ADD technoweek offer, companies
|
-
Property mode
set to
100644
|
File size:
295 bytes
|
Line | |
---|
1 | <?php
|
---|
2 |
|
---|
3 | namespace App\Models;
|
---|
4 |
|
---|
5 | use Illuminate\Database\Eloquent\Model;
|
---|
6 |
|
---|
7 | class Company extends Model
|
---|
8 | {
|
---|
9 | protected $table = "companies";
|
---|
10 |
|
---|
11 | protected $fillable = [
|
---|
12 | "name", "website", "email"
|
---|
13 | ];
|
---|
14 |
|
---|
15 | public function users()
|
---|
16 | {
|
---|
17 | return $this->hasMany(User::class);
|
---|
18 | }
|
---|
19 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.