Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
tipuloidea
/
back
/
vendor
/
spatie
/
laravel-data
/
src
/
Exceptions
:
CannotFillFromRouteParameterPropertyUsingScalarValue.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php namespace Spatie\LaravelData\Exceptions; use Exception; use Illuminate\Support\Str; use Spatie\LaravelData\Attributes\InjectsPropertyValue; use Spatie\LaravelData\Support\DataProperty; class CannotFillFromRouteParameterPropertyUsingScalarValue extends Exception { public static function create(DataProperty $property, InjectsPropertyValue $attribute): self { $attribute = Str::afterLast($attribute::class, '\\'); return new self("Attribute {$attribute} cannot be used with injected scalar parameters for property {$property->className}::{$property->name}"); } }