سلام
کدهای من کجاش ایراد داره به نظرتون
<x-slider :items="$newest" info="str"/>
کدهای کلاسnamespace App\\View\\Components;
use Illuminate\\View\\Component;
class Slider extends Component
{
public $items;
public $info;
/**
* Create a new component instance.
*
* @param $items
* @param $info
* @return void
*/
public function __construct($items, $info)
{
$this->items = $items;
$this->info = $info;
}
/**
* Get the view / contents that represent the component.
*
* @return \\Illuminate\\Contracts\\View\\View|\\Closure|string
*/
public function render()
{
return view('components.slider');
}
}
من با ارور مواجه میشم وقتی مقدار info رو پاس میدم