Level 5
You shouldn't reference the blade template directly in the src attribute but rather a route that renders the template.
e.g. <iframe src="/dashboard"></iframe>
i am using laravel 5.4 and i want to display the file in /dashboard/dashboard.blade.php folder on iframe
folder structure:
/dashboard/dashboard.blade.php
layout.blade.php
index.blade.php
this is my code inside layout.blade.php
<iframe src =" dashboard / dashboard.blade.php "> </ iframe>
I tried displaying index.blade.php on an iframe using the src =" index.blade.php " method and it worked, but I can not display dashboard.blade.php in the same way, it says the file was not found.
You shouldn't reference the blade template directly in the src attribute but rather a route that renders the template.
e.g. <iframe src="/dashboard"></iframe>
Please or to participate in this conversation.