user8500060
user8500060

Reputation:

How to include blade File in to the php file

page-standard.php file is my core file , then one of my file is test.blade.php file. So, the Question is that how can i include the test.blade.php file in page-standard.php

Start :: page-standard.php

 include(base_path().'/resources/views/vendor/voyager/dashboard/test.blade.php');

End :: page-standard.php

Upvotes: 2

Views: 334

Answers (1)

online Thomas
online Thomas

Reputation: 9391

You can just echo the view using the helper:

echo view('name-of-blade.blade');

However in your case you also have to publish / copy the file from the vendor to access it.

Upvotes: 1

Related Questions