i have php file in name of index.php. in have included page "xyz.php".
i have included "xyz.php" in index.php using @include('xyz')
.
when trying include external css , js in xyz using
{{ url::asset('assets/js/jsfile.js') }} {{ url::asset('assets/css/cssfile.css') }}
it not working. in source displays is.
how can solve issue.
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='http://fonts.googleapis.com/css?family=open+sans:400,300,300italic,400italic,600,600italic,700,700italic' rel='stylesheet' type='text/css'> <link href="{{ url::asset('assets/netbramha/css/bootstrap.min.css') }}" rel="stylesheet"> <script src="{{ url::asset('assets/netbramha/js/modernizr.custom.js') }}"></script> </head> <body> @include('home-search') </body> </html>
home-search.blade.php
<div class="video-modal"> <img class="lazy-load" data-original="{{ url::asset('/') }}/assets/netbramha/images/video-img.jpg" src="images/grey.gif" width="598" height="336" alt="" /> </div>
maybe help
{{ url::asset('/') }}/location of css/scripts
cheers
Comments
Post a Comment