Added very basic authorization.

This commit is contained in:
Lukas Halbritter
2018-12-06 11:49:49 +01:00
parent 85493343d6
commit 24001f6920
6 changed files with 140 additions and 59 deletions
+9
View File
@@ -118,4 +118,13 @@ class Booking extends Model
public static function firstDate() {
return Booking::min('date');
}
/**
* Get the date of the last booking.
*
* @return string
*/
public static function lastDate() {
return Booking::max('date');
}
}