mercredi 1 février 2017

how to create a blade template in laravel 5?

This is my first time in laravel and sorry for very newby question, I was very confuse between blade template and php file, because every time a create a template with .blade.php that file is cannot find by route, here is my code.

Route::get('/test', function (){
return view('testblade');});

that was the testblade.blade.php

but when I create a php file without .blade extension, it is functioning well

Route::get('/test', function (){
    return view('testphpalone');});

that was the testphpalone.php.

My worry is that if am I able to use the @yield(''), @extends('') and other blade syntax?

Thank you everyone in advance, any comment will be a great helps.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kfGsr0
via IFTTT

Aucun commentaire:

Enregistrer un commentaire