This commit is contained in:
Saeed Vaziry
2025-06-04 15:38:07 +02:00
parent c3f69f3247
commit 35894003f5
19 changed files with 738 additions and 93 deletions

View File

@ -4,6 +4,7 @@
use App\Models\Script;
use App\Models\User;
use Illuminate\Support\Facades\Validator;
class CreateScript
{
@ -12,6 +13,8 @@ class CreateScript
*/
public function create(User $user, array $input): Script
{
Validator::make($input, self::rules())->validate();
$script = new Script([
'user_id' => $user->id,
'name' => $input['name'],