php - Blade template inclusion issue in laravel -


i have php file in name of index.blade.php in have included page "xyz.php".

i have included "xyz.php" in index.blade.php using @include('xyz').

when trying include php file inside xyz not working.

please find source code below

index.blade.php

<!doctype html> <html lang="en">    <head>       <meta charset="utf-8">       <meta http-equiv="x-ua-compatible" content="ie=edge">       <meta name="viewport" content="width=device-width, initial-scale=1">       <title>my laravel page</title>           <link href="{{ config::get('ipvars.filepath') }}assets/netbramha/css/bootstrap.min.css" rel="stylesheet">   <link href="{{ config::get('ipvars.filepath') }}assets/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" >   <!-- font icon -->     </head>    <body>      @include('xyz') 

xyz.php

<div> @include('footer') </div> </body> </html> 

this footer content not included properly. shows @include('footer') in source code

@include('footer') not work on xyz.php. template engine not work on page.

you can cheange file name xyz.blade.php , working.

or use php function instead of directives on xyz.php.


Comments