Skip to content
Snippets Groups Projects
Commit b8c6ae0d authored by Shizuco's avatar Shizuco
Browse files

feat: sku only numeric

parent b8175f7c
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,6 @@
namespace App\Models;
// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
......
......@@ -93,7 +93,8 @@ function ($request, $model) {
Text::make('SKU')
->sortable()
->creationRules('required', new isSKUAvailable(intval($request->retailer_id), 0)),
->creationRules('required', new isSKUAvailable(intval($request->retailer_id), 0))
->rules('numeric'),
Money::make('Price')
->sortable()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment