The thing is, my image is not directly present in my view
Route::Get('saakshar',function()
{
return view('version1');
});
在我的版本1中.刀身php
<?php
include(app_path()."/../resources/views/fronthead.blade.php");
?>
I know using php commands in blade file is not efficient or good in any manner, but blade command is not working, but that's not my main problem here.
在我的前脑.刀身php
<img src='app_path()."/../resources/views/photos/logo.png"' alt="no logo">
I haven't learned fully the blade language, so for time being i am using php commands.
但我的问题是,为什么照片没有加载到网页中?网址错了吗?我把"照片"文件夹放错地方了吗?
Edit: I've even tried to place the photo is the same folder as fronthead.blade.php and changed the src tag.
I've even tried giving a separate Route::Get() from fronthead.blade.php, but still the problem persists.