Php 刀片文件上未显示图像
为什么即使在执行了符号链接之后,我的图像也没有显示在live Host中的刀片文件上,ps:-它在localhost上运行良好 后置控制器:Php 刀片文件上未显示图像,php,laravel,laravel-5,eloquent,symlink,Php,Laravel,Laravel 5,Eloquent,Symlink,为什么即使在执行了符号链接之后,我的图像也没有显示在live Host中的刀片文件上,ps:-它在localhost上运行良好 后置控制器: public function createpost(Request $request) { Post::create( [ 'user_id'=>$request->user_id, 'post_title'=>$request->post_
public function createpost(Request $request)
{
Post::create(
[
'user_id'=>$request->user_id,
'post_title'=>$request->post_title,
'post_body'=>$request->post_body,
'post_image'=>$request->file('post_image')->store('public'),
'status'=>1
]);
echo "Recorded Successfully";
echo "<a href='/post'>Click here</a> to go back";
}
Blade.php文件
{{url('storage/'.$post->post_image) }}
您可以使用
asset()
helper
{{ asset('storage/' . $post->post_image) }}
或存储
外观
{{ Storage::url($post->post_image) }}
这没用,兄弟!你能浏览一下这个链接并指出它有什么问题吗?链接:-图像显示良好谢谢您的关注,先生!我弄错了我的网址
{{ Storage::url($post->post_image) }}