public function boot()
{
View::composer('ваш шаблон', СозданныйКлассКомпозера::class);
}
public function compose(View $view)
{
$orders = Order::where('id',session('item'))->first();
$view->with(compact('orders'));
}
$files = glob($dir . "*111222333*");
echo end($files);
$xml = new SimpleXMLElement("https://www.rosatom.ru/upload/iblock_rss_38.xml", 0, true);
$title = $xml->channel->item[0]->title;
$description = $xml->channel->item[0]->description;
$dom = new DOMDocument();
$dom->loadHTML('<?xml encoding="UTF-8">' . $description);
$div = $dom->getElementsByTagName('div')[0];
var_dump($div->textContent);
$description = (string)$xml->channel->item[0]->description->div[0];