Remove pxlrbt/filament-activity-log dependency from composer.json and update composer.lock. Enhance LoginController validation by adding a rule to exclude a specific username. Minor adjustments in migration files for activity log to improve code organization.
This commit is contained in:
@@ -14,6 +14,7 @@ use Illuminate\Http\Response;
|
|||||||
use Illuminate\Routing\Controller;
|
use Illuminate\Routing\Controller;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
use Illuminate\Support\Facades\Hash;
|
use Illuminate\Support\Facades\Hash;
|
||||||
|
use Illuminate\Validation\Rule;
|
||||||
|
|
||||||
class LoginController extends Controller
|
class LoginController extends Controller
|
||||||
{
|
{
|
||||||
@@ -113,7 +114,7 @@ class LoginController extends Controller
|
|||||||
protected function validateLogin(Request $request): void
|
protected function validateLogin(Request $request): void
|
||||||
{
|
{
|
||||||
$request->validate([
|
$request->validate([
|
||||||
$this->username() => ['required', 'string', 'max:250'],
|
$this->username() => ['required', 'string', 'max:250', Rule::notIn('65999990', 'ulanyjy_ady')],
|
||||||
'password' => ['required', 'string', 'max:250'],
|
'password' => ['required', 'string', 'max:250'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ class WorkPanelProvider extends PanelProvider
|
|||||||
]),
|
]),
|
||||||
|
|
||||||
FilamentUpload::make(),
|
FilamentUpload::make(),
|
||||||
|
|
||||||
])
|
])
|
||||||
->authMiddleware([
|
->authMiddleware([
|
||||||
Authenticate::class,
|
Authenticate::class,
|
||||||
|
|||||||
@@ -19,7 +19,6 @@
|
|||||||
"laravel/ui": "^4.6",
|
"laravel/ui": "^4.6",
|
||||||
"mpdf/mpdf": "^8.2",
|
"mpdf/mpdf": "^8.2",
|
||||||
"phpoffice/phpword": "dev-master",
|
"phpoffice/phpword": "dev-master",
|
||||||
"pxlrbt/filament-activity-log": "^2.0",
|
|
||||||
"ralphjsmit/laravel-filament-upload": "^1.1",
|
"ralphjsmit/laravel-filament-upload": "^1.1",
|
||||||
"spatie/laravel-activitylog": "^4.10",
|
"spatie/laravel-activitylog": "^4.10",
|
||||||
"spatie/laravel-medialibrary": "^11.17",
|
"spatie/laravel-medialibrary": "^11.17",
|
||||||
|
|||||||
65
composer.lock
generated
65
composer.lock
generated
@@ -4,7 +4,7 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "a455f1fc2e2a48966554ea52ac362864",
|
"content-hash": "3fe345d22ddaf5b75cd17aaecee2b718",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "abdulmajeed-jamaan/filament-translatable-tabs",
|
"name": "abdulmajeed-jamaan/filament-translatable-tabs",
|
||||||
@@ -6614,69 +6614,6 @@
|
|||||||
},
|
},
|
||||||
"time": "2025-12-17T14:35:46+00:00"
|
"time": "2025-12-17T14:35:46+00:00"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "pxlrbt/filament-activity-log",
|
|
||||||
"version": "v2.0.2",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/pxlrbt/filament-activity-log.git",
|
|
||||||
"reference": "32f412b72b70d7ae61f54bd5e3df3ce18505505d"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/pxlrbt/filament-activity-log/zipball/32f412b72b70d7ae61f54bd5e3df3ce18505505d",
|
|
||||||
"reference": "32f412b72b70d7ae61f54bd5e3df3ce18505505d",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"filament/filament": "^4.0",
|
|
||||||
"php": "^8.0",
|
|
||||||
"spatie/laravel-activitylog": "^4.7"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"laravel/pint": "^1.5"
|
|
||||||
},
|
|
||||||
"type": "library",
|
|
||||||
"extra": {
|
|
||||||
"laravel": {
|
|
||||||
"providers": [
|
|
||||||
"\\pxlrbt\\FilamentActivityLog\\FilamentActivityLogServiceProvider"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"pxlrbt\\FilamentActivityLog\\": "src/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Dennis Koch",
|
|
||||||
"email": "info@pixelarbeit.de"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "Spatie's Laravel Activity Log integrated into Filament",
|
|
||||||
"keywords": [
|
|
||||||
"activity log",
|
|
||||||
"filament",
|
|
||||||
"laravel-filament"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/pxlrbt/filament-activity-log/issues",
|
|
||||||
"source": "https://github.com/pxlrbt/filament-activity-log/tree/v2.0.2"
|
|
||||||
},
|
|
||||||
"funding": [
|
|
||||||
{
|
|
||||||
"url": "https://github.com/pxlrbt",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"time": "2025-10-17T06:53:01+00:00"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "ralouphie/getallheaders",
|
"name": "ralouphie/getallheaders",
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class CreateActivityLogTable extends Migration
|
class CreateActivityLogTable extends Migration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class AddEventColumnToActivityLogTable extends Migration
|
class AddEventColumnToActivityLogTable extends Migration
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Schema\Blueprint;
|
|
||||||
use Illuminate\Database\Migrations\Migration;
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class AddBatchUuidColumnToActivityLogTable extends Migration
|
class AddBatchUuidColumnToActivityLogTable extends Migration
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user