In Laravel 5, What's the difference between {{url}} and {{asset}}?
问题 I find sometimes both is OK? So what's the really difference? For example, <link rel="stylesheet" href="{{asset('resources/views/admin/style/css-ui.admin.css')}}"> and <link rel="stylesheet" href="{{url('resources/views/admin/style/font/css/font-awesome.min.css')}}"> these two form is both OK. So, what's the differences? 回答1: Deciding which URL helper to use Consider the type of URL that is needed / how the URL is being used. One of the advantages of having separate helper methods for each