Open krzysztofrewak opened 4 weeks ago
I would like use simple components in my Blade views:
So in BookController.php it could look like this:
BookController.php
public function __invoke(): View { $builder = new LaravelHeatmapBuilder(arrayAccessIndex: "read_at"); $result = $builder->build(Book::class); return view("books")->with("heatmap", $heatmap); }
And in book.blade.php like this:
book.blade.php
<x-heatmap:heatmap :heatmap=$heatmap></x-heatmap>
I would like use simple components in my Blade views:
So in
BookController.php
it could look like this:And in
book.blade.php
like this: