-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
elyambay
committed
Oct 15, 2018
1 parent
3029bd3
commit ae5b014
Showing
43 changed files
with
1,232 additions
and
511 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Area_en extends Model | ||
{ | ||
protected $table = "areas_en"; | ||
|
||
protected $fillable = ["descripcion"]; | ||
|
||
public function detalleEncuestas(){ | ||
return $this->hasMany("App\Detalle_encuesta"); | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Cargo_en extends Model | ||
{ | ||
protected $table = "cargos_en"; | ||
|
||
protected $fillable = ["descripcion", "area_id", "nivel_id", "is_temporal", "detalle"]; | ||
|
||
public function encuestasCargo(){ | ||
return $this->hasMany("App\Encuestas_cargo"); | ||
} | ||
|
||
public function cargosRubro(){ | ||
return $this->hasMany("App\Cargos_rubro"); | ||
} | ||
|
||
public function area(){ | ||
return $this->belongsTo("App\Area"); | ||
} | ||
|
||
public function nivel(){ | ||
return $this->belongsTo("App\Nivel_en"); | ||
} | ||
|
||
} |
This file contains 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
This file contains 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
Oops, something went wrong.