Laravel 8.12: syntax error, Unexpected 'min' (T_STRING), expecting ')'

Asked

Viewed 31 times

-1

I am developing a project using Laravel 8.12 and PHP 7.3.21 and am facing the problem below.

inserir a descrição da imagem aqui

Below is the contents of the head.blade.php file.

@stack('head_start')

<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>@yield('title')</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="icon" href="favicon.ico" type="image/x-icon" />

<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:300,400,600,700,800" rel="stylesheet">

<link rel="stylesheet" href="{{ assets( plugins/bootstrap/dist/css/bootstrap.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/fontawesome-free/css/all.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/icon-kit/dist/css/iconkit.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/ionicons/dist/css/ionicons.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/perfect-scrollbar/css/perfect-scrollbar.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/datatables.net-bs4/css/dataTables.bootstrap4.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/jvectormap/jquery-jvectormap.css) }}">
<link rel="stylesheet"
    href="{{ assets( plugins/tempusdominus-bootstrap-4/build/css/tempusdominus-bootstrap-4.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/weather-icons/css/weather-icons.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/c3/c3.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/owl.carousel/dist/assets/owl.carousel.min.css) }}">
<link rel="stylesheet" href="{{ assets( plugins/owl.carousel/dist/assets/owl.theme.default.min.css) }}">
<link rel="stylesheet" href="{{ assets( dist/css/theme.min.css) }}">
<script src="{{ assets( src/js/vendor/modernizr-2.8.3.min.js) }}"></script>

@stack('head_end')

1 answer

1

See the excerpt from this line you wrote:

{{ assets( plugins/bootstrap/dist/css/bootstrap.min.css) }}

This is a syntax error. You need to put the assets as string.

Thus:

{{ assets('plugins/bootstrap/dist/css/bootstrap.min.css') }}

In this case, quote all items that are in assets.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.