dd(FuwMapping::where('template','=','NB5215')->get()->mapWithKeys(function($item) use ($content) {
return [$item->pdf_field => array_get($content, $item->json_field)];
}));
controller{
function show(){
$banner = Model::generate()
return view('nameView', [
[baner] => $banner
])
}
}
Model{
public static function generate(){
$html = '<h1>Hello world</h1>'
return $html;
}
}
class Test {
public function __construct(ProductManageService $service)
{
$this->service = $service;
}
}
and
class ProductManageService {
}
$one = new ProductManageService();
$two = new Test($one);
$one = new NewService();
$two = new Test($one); //error
database/seeds/DatabaseSeeder.php
? А также какая версия Laravel на проекте ?