aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2023-06-14 23:24:47 +0100
committerFrankie B <git@diskfloppy.me>2023-06-14 23:24:47 +0100
commite5ac640025d24b14e3a24632a768c789b6085a7f (patch)
tree8cbd3378fdeae88bb7db628749b5862e49aa88d3
parent20e394e9f27aab0cb522f84f3d636b279ecb863e (diff)
fix: class errors
-rw-r--r--app/Models/Bookmark.php2
-rw-r--r--app/Models/BookmarkCategory.php2
-rw-r--r--app/Models/Project.php2
-rw-r--r--app/Models/ProjectCategory.php2
-rw-r--r--config/bookmarks.php4
-rw-r--r--config/projects.php4
6 files changed, 12 insertions, 4 deletions
diff --git a/app/Models/Bookmark.php b/app/Models/Bookmark.php
index f679205..3396242 100644
--- a/app/Models/Bookmark.php
+++ b/app/Models/Bookmark.php
@@ -1,4 +1,6 @@
<?php
+namespace App\Models;
+
class Bookmark {
/**
* @var string The name of the bookmark.
diff --git a/app/Models/BookmarkCategory.php b/app/Models/BookmarkCategory.php
index 0f2335d..10c031a 100644
--- a/app/Models/BookmarkCategory.php
+++ b/app/Models/BookmarkCategory.php
@@ -1,4 +1,6 @@
<?php
+namespace App\Models;
+
class BookmarkCategory {
/**
* @var string The name of the bookmark category.
diff --git a/app/Models/Project.php b/app/Models/Project.php
index 0b90828..183877e 100644
--- a/app/Models/Project.php
+++ b/app/Models/Project.php
@@ -1,4 +1,6 @@
<?php
+namespace App\Models;
+
class Project {
/**
* @var string The name of the project.
diff --git a/app/Models/ProjectCategory.php b/app/Models/ProjectCategory.php
index babe265..3b15f51 100644
--- a/app/Models/ProjectCategory.php
+++ b/app/Models/ProjectCategory.php
@@ -1,4 +1,6 @@
<?php
+namespace App\Models;
+
class ProjectCategory {
/**
* @var string The name of the bookmark category.
diff --git a/config/bookmarks.php b/config/bookmarks.php
index 3138d69..cd23ece 100644
--- a/config/bookmarks.php
+++ b/config/bookmarks.php
@@ -1,6 +1,6 @@
<?php
-include 'app/Models/Bookmark.php';
-include 'app/Models/BookmarkCategory.php';
+use App\Models\Bookmark;
+use App\Models\BookmarkCategory;
return [
new BookmarkCategory("Friends' Websites", [
diff --git a/config/projects.php b/config/projects.php
index 4a523fa..8a50970 100644
--- a/config/projects.php
+++ b/config/projects.php
@@ -1,6 +1,6 @@
<?php
-include 'app/Models/Project.php';
-include 'app/Models/ProjectCategory.php';
+use App\Models\Project;
+use App\Models\ProjectCategory;
return [
new ProjectCategory("Websites", [