diff --git a/app/Http/Controllers/ChirpController.php b/app/Http/Controllers/ChirpController.php
deleted file mode 100644
index d8aca1d..0000000
--- a/app/Http/Controllers/ChirpController.php
+++ /dev/null
@@ -1,90 +0,0 @@
- Chirp::with("user")->latest()->get()
- ]);
- }
-
- /**
- * Show the form for creating a new resource.
- */
- public function create()
- {
- //
- }
-
- /**
- * Store a newly created resource in storage.
- */
- public function store(Request $request)
- {
- $validated = $request->validate([
- "message" => "required|string|max:255"
- ]);
-
- $request->user()->chirps()->create($validated);
-
- return redirect(route("chirps.index"));
- }
-
- /**
- * Display the specified resource.
- */
- public function show(Chirp $chirp)
- {
- //
- }
-
- /**
- * Show the form for editing the specified resource.
- */
- public function edit(Chirp $chirp)
- {
- $this->authorize("update", $chirp);
-
- return view("chirps.edit", [
- "chirp" => $chirp
- ]);
- }
-
- /**
- * Update the specified resource in storage.
- */
- public function update(Request $request, Chirp $chirp)
- {
- $this->authorize("update", $chirp);
-
- $validated = $request->validate([
- "message" => "required|string|max:255"
- ]);
-
- $chirp->update($validated);
-
- return redirect(route("chirps.index"));
- }
-
- /**
- * Remove the specified resource from storage.
- */
- public function destroy(Chirp $chirp)
- {
- $this->authorize("delete", $chirp);
-
- $chirp->delete();
-
- return redirect(route("chirps.index"));
- }
-}
diff --git a/app/Http/Controllers/TestTakingController.php b/app/Http/Controllers/TestTakingController.php
new file mode 100644
index 0000000..2dc8a94
--- /dev/null
+++ b/app/Http/Controllers/TestTakingController.php
@@ -0,0 +1,65 @@
+belongsTo(User::class);
- }
-}
diff --git a/app/Models/User.php b/app/Models/User.php
index d35a2be..4013426 100644
--- a/app/Models/User.php
+++ b/app/Models/User.php
@@ -45,11 +45,6 @@ class User extends Authenticatable
'password' => 'hashed',
];
- public function chirps(): HasMany
- {
- return $this->hasMany(Chirp::class);
- }
-
public function tests(): HasMany
{
return $this->hasMany(Test::class);
diff --git a/app/Policies/ChirpPolicy.php b/app/Policies/ChirpPolicy.php
deleted file mode 100644
index 6eb109c..0000000
--- a/app/Policies/ChirpPolicy.php
+++ /dev/null
@@ -1,66 +0,0 @@
-user()->is($user);
- }
-
- /**
- * Determine whether the user can delete the model.
- */
- public function delete(User $user, Chirp $chirp): bool
- {
- return $this->update($user, $chirp);
- }
-
- /**
- * Determine whether the user can restore the model.
- */
- public function restore(User $user, Chirp $chirp): bool
- {
- return false;
- }
-
- /**
- * Determine whether the user can permanently delete the model.
- */
- public function forceDelete(User $user, Chirp $chirp): bool
- {
- return false;
- }
-}
diff --git a/database/migrations/2023_10_29_105311_create_chirps_table.php b/database/migrations/2023_10_29_105311_create_chirps_table.php
deleted file mode 100644
index 8a64826..0000000
--- a/database/migrations/2023_10_29_105311_create_chirps_table.php
+++ /dev/null
@@ -1,29 +0,0 @@
-id();
- $table->foreignId("user_id")->constrained()->cascadeOnDelete();
- $table->string("message");
- $table->timestamps();
- });
- }
-
- /**
- * Reverse the migrations.
- */
- public function down(): void
- {
- Schema::dropIfExists('chirps');
- }
-};
diff --git a/lang/lt.json b/lang/lt.json
index 1a05c1b..cec6f90 100644
--- a/lang/lt.json
+++ b/lang/lt.json
@@ -15,5 +15,7 @@
"Save": "Saugoti",
"Cancel": "Atšaukti",
"Create test": "Sukurti testą",
- "Tests": "Testai"
+ "Tests": "Testai",
+ "Take tests": "Laikyti testą",
+ "Dashboard": "Pagrindinis"
}
diff --git a/resources/views/chirps/edit.blade.php b/resources/views/chirps/edit.blade.php
deleted file mode 100644
index c57467c..0000000
--- a/resources/views/chirps/edit.blade.php
+++ /dev/null
@@ -1,14 +0,0 @@
- {{ $chirp->message }}