Laravel Without Blade

I has been using Laravel for a while, I like but I cannot stand to use blade as template. To disable it is very easy, just see the following example

1. Add the code ” protected $layout = ‘layout.main’ to the file BaseController.php

2. Create layout “layout/main.php

3. Edit file “HomeController.php”

4. Create template “home/welcome.php

 

Leave a Reply

Your email address will not be published. Required fields are marked *