Skip to content

Commit

Permalink
fixing sytle
Browse files Browse the repository at this point in the history
  • Loading branch information
Strogator committed Dec 16, 2023
1 parent dea9656 commit 79c3123
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 2 additions & 1 deletion app/Http/Controllers/RequestController.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ public function create()
*/
public function store(Request $request)
{
//@ Maelys
//@ Maelys
//$songRequest = SongRequest::create($request->validated()->only(['song_name', 'artist_name']));
$songRequest = SongRequest::create($request->only(['song_name', 'artist_name']));

return view('request.confirmation')->with(['title' => $songRequest->song_name, 'author' => $songRequest->artist_name]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
return new class() extends Migration {
/**
* Run the migrations.
*/
Expand All @@ -22,7 +21,7 @@ public function up(): void
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->unique('name');
$table->unique('name');
});
}
};
7 changes: 0 additions & 7 deletions routes/auth.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
<?php

use App\Http\Controllers\Auth\AuthenticatedSessionController;
use App\Http\Controllers\Auth\ConfirmablePasswordController;
use App\Http\Controllers\Auth\EmailVerificationNotificationController;
use App\Http\Controllers\Auth\EmailVerificationPromptController;
use App\Http\Controllers\Auth\NewPasswordController;
use App\Http\Controllers\Auth\PasswordController;
use App\Http\Controllers\Auth\PasswordResetLinkController;
use App\Http\Controllers\Auth\RegisteredUserController;
use App\Http\Controllers\Auth\VerifyEmailController;
use Illuminate\Support\Facades\Route;

Route::middleware('guest')->group(function () {
Expand All @@ -27,11 +22,9 @@

Route::post('forgot-password', [PasswordResetLinkController::class, 'store'])
->name('password.email');

});

Route::middleware('auth')->group(function () {

Route::put('password', [PasswordController::class, 'update'])->name('password.update');

Route::post('logout', [AuthenticatedSessionController::class, 'destroy'])
Expand Down

0 comments on commit 79c3123

Please sign in to comment.