requested edits

This commit is contained in:
akemidx 2023-04-26 17:06:08 -04:00
parent aab53cf683
commit 497d17835f
2 changed files with 1 additions and 2 deletions

View file

@ -3,7 +3,6 @@
namespace App\Http\Controllers;
use App\Http\Requests\ImageUploadRequest;
use App\Http\Requests\SaveManufacturerRequest;
use App\Models\Manufacturer;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

View file

@ -24,7 +24,7 @@ class Manufacturer extends SnipeModel
'name' => 'required|min:2|max:255|unique:manufacturers,name,NULL,id,deleted_at,NULL',
'url' => 'url|nullable',
'support_email' => 'email|nullable',
'support_url' => ['starts_with:http://,https://,afp://,facetime://,file://,irc://','nullable'],
'support_url' => 'starts_with:http://,https://,afp://,facetime://,file://,irc://','nullable',
];
protected $hidden = ['user_id'];