Cleaning (#1)

* Sanctum removed

* Unused middleware classes removed

* Changed default email - Seeder

* Models updated

* Config .env is now smaller

* Not used, so not used - Providers

* Clearing your router of comments
This commit is contained in:
2022-05-19 13:22:51 +02:00
committed by GitHub
parent 500523efd6
commit d118793e01
29 changed files with 187 additions and 534 deletions

View File

@@ -4,21 +4,6 @@ declare(strict_types=1);
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/
// Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
// return $request->user();
// });
Route::get('ping', function () {
return ['message' => 'pong'];
});

View File

@@ -1,18 +0,0 @@
<?php
use Illuminate\Support\Facades\Broadcast;
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/
Broadcast::channel('App.Models.User.{id}', function ($user, $id) {
return (int) $user->id === (int) $id;
});

View File

@@ -1,19 +1,10 @@
<?php
declare(strict_types=1);
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');

View File

@@ -1,17 +1,8 @@
<?php
use Illuminate\Support\Facades\Route;
declare(strict_types=1);
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
use Illuminate\Support\Facades\Route;
Route::name('admin.')->group(function () {
Route::namespace('Dashboard')->middleware('auth')->group(function () {
@@ -50,6 +41,7 @@ Route::name('admin.')->group(function () {
->name('destroy');
});
});
Route::name('auth.')->namespace('Auth')->group(function () {
Route::get('login', 'LoginController@login')
->name('login');