From 131ac97afa55563be2d32e98cc921068bf0a659b Mon Sep 17 00:00:00 2001 From: Vedran Zelen <zelenvedran@gmail.com> Date: Mon, 27 Jul 2020 10:43:22 +0200 Subject: [PATCH] added helpful comments to models --- skolehjem/app/Album.php | 6 ++++++ skolehjem/app/CalendarDate.php | 5 +++++ skolehjem/app/CalendarEvent.php | 6 ++++++ skolehjem/app/Contact.php | 6 ++++++ skolehjem/app/Event.php | 6 ++++++ skolehjem/app/ExternalLink.php | 6 ++++++ skolehjem/app/Feedbacks.php | 6 ++++++ skolehjem/app/MenuPlan.php | 6 ++++++ skolehjem/app/Resource.php | 5 +++++ skolehjem/app/ResourceCategory.php | 5 +++++ skolehjem/app/ResourceExtension.php | 5 +++++ skolehjem/app/User.php | 5 +++++ skolehjem/app/WashingMachine.php | 5 +++++ skolehjem/app/WashingReservation.php | 5 +++++ 14 files changed, 77 insertions(+) diff --git a/skolehjem/app/Album.php b/skolehjem/app/Album.php index e32fee6..5842567 100644 --- a/skolehjem/app/Album.php +++ b/skolehjem/app/Album.php @@ -1,9 +1,15 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; +//Class of which should extend Model Library class Album extends Model { protected $fillable = [ diff --git a/skolehjem/app/CalendarDate.php b/skolehjem/app/CalendarDate.php index c6e7fe3..0392479 100644 --- a/skolehjem/app/CalendarDate.php +++ b/skolehjem/app/CalendarDate.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class CalendarDate extends Model diff --git a/skolehjem/app/CalendarEvent.php b/skolehjem/app/CalendarEvent.php index 8180c57..b68b3bb 100644 --- a/skolehjem/app/CalendarEvent.php +++ b/skolehjem/app/CalendarEvent.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class CalendarEvent extends Model diff --git a/skolehjem/app/Contact.php b/skolehjem/app/Contact.php index 353a325..1cf2ccd 100644 --- a/skolehjem/app/Contact.php +++ b/skolehjem/app/Contact.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class Contact extends Model diff --git a/skolehjem/app/Event.php b/skolehjem/app/Event.php index 613ce5b..3e12725 100644 --- a/skolehjem/app/Event.php +++ b/skolehjem/app/Event.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class Event extends Model diff --git a/skolehjem/app/ExternalLink.php b/skolehjem/app/ExternalLink.php index 02745fa..481c6dd 100644 --- a/skolehjem/app/ExternalLink.php +++ b/skolehjem/app/ExternalLink.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class ExternalLink extends Model diff --git a/skolehjem/app/Feedbacks.php b/skolehjem/app/Feedbacks.php index 3233639..e82552b 100644 --- a/skolehjem/app/Feedbacks.php +++ b/skolehjem/app/Feedbacks.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class Feedbacks extends Model diff --git a/skolehjem/app/MenuPlan.php b/skolehjem/app/MenuPlan.php index cef6c24..65c1c59 100644 --- a/skolehjem/app/MenuPlan.php +++ b/skolehjem/app/MenuPlan.php @@ -1,7 +1,13 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. + namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class MenuPlan extends Model diff --git a/skolehjem/app/Resource.php b/skolehjem/app/Resource.php index 5903a68..1594cee 100644 --- a/skolehjem/app/Resource.php +++ b/skolehjem/app/Resource.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class Resource extends Model diff --git a/skolehjem/app/ResourceCategory.php b/skolehjem/app/ResourceCategory.php index 787be29..8869761 100644 --- a/skolehjem/app/ResourceCategory.php +++ b/skolehjem/app/ResourceCategory.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class ResourceCategory extends Model diff --git a/skolehjem/app/ResourceExtension.php b/skolehjem/app/ResourceExtension.php index 1ee4ab0..fb7ee37 100644 --- a/skolehjem/app/ResourceExtension.php +++ b/skolehjem/app/ResourceExtension.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class ResourceExtension extends Model diff --git a/skolehjem/app/User.php b/skolehjem/app/User.php index ac8b735..11e4f0c 100644 --- a/skolehjem/app/User.php +++ b/skolehjem/app/User.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of many libraries. use Illuminate\Contracts\Auth\MustVerifyEmail; use Illuminate\Database\Eloquent\SoftDeletes; use Illuminate\Foundation\Auth\User as Authenticatable; diff --git a/skolehjem/app/WashingMachine.php b/skolehjem/app/WashingMachine.php index 634448d..eec852e 100644 --- a/skolehjem/app/WashingMachine.php +++ b/skolehjem/app/WashingMachine.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class WashingMachine extends Model diff --git a/skolehjem/app/WashingReservation.php b/skolehjem/app/WashingReservation.php index 3925ecc..cf446c2 100644 --- a/skolehjem/app/WashingReservation.php +++ b/skolehjem/app/WashingReservation.php @@ -1,7 +1,12 @@ <?php +//The Model to a certain Controller, should contain a class with Controller name to which it belongs. +// Allows needed strings to passed onto the database. if there is none. class should appear empty. + +//Reference to where the file belongs. namespace App; +//allows the use of Model library use Illuminate\Database\Eloquent\Model; class WashingReservation extends Model