Laravel – Output Blade Component as Text
Sometimes you want to use the HTML output from a blade component in a PHP class. You can do this using the view('component')->render() method. For example: Let's say we had…
Sometimes you want to use the HTML output from a blade component in a PHP class. You can do this using the view('component')->render() method. For example: Let's say we had…