diff --git a/app/Area.php b/app/Area.php index ef259d40e35ea16060862774ba0134ca06150be6..95d19dd3461f7144e0f4f0f7ba3ab8311b98dab7 100755 --- a/app/Area.php +++ b/app/Area.php @@ -40,4 +40,8 @@ class Area extends Model public function grandeArea() { return $this->belongsTo('App\GrandeArea', 'grande_area_id'); } + + public function subAreas() { + return $this->hasMany('App\SubArea'); + } } diff --git a/resources/views/administrador/index.blade.php b/resources/views/administrador/index.blade.php index d502f680d4f81892de300d9a9f60e2301c18b3bb..127b15266d2b021c02caf58a4cf9d4dfffc7def9 100755 --- a/resources/views/administrador/index.blade.php +++ b/resources/views/administrador/index.blade.php @@ -3,170 +3,45 @@ @section('content')
Nome | @@ -68,7 +77,7 @@
---|