inrate
inrate

Reputation: 365

Unknown errors using csrf_token. Laravel

I need to connect some files, using csrf_token (from laravel), but i have unknown errors such as:

<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <meta name="csrf-token" content="{{ csrf_token() }}">

        <title>Auth</title>

        <link rel="stylesheet" href="{{ asset('css/app.css) }}">

    </head>
    <body>
        <div id="app"></div>

        <script>
            var BASE_URL = '{{ URL::to('/') }}';
        </script>

        <script src="{{ asset('js/app.js') }}"></script>
    </body>
</html>

Upvotes: 2

Views: 250

Answers (2)

fedev
fedev

Reputation: 416

For second, instead of

var BASE_URL = '{{ URL::to('/') }}';

use

var BASE_URL = "{{ URL::to('/') }}";

Upvotes: 2

Prafulla Kumar Sahu
Prafulla Kumar Sahu

Reputation: 9693

You have missed a quote

instead of

<link rel="stylesheet" href="{{ asset('css/app.css) }}">

use

<link rel="stylesheet" href="{{ asset('css/app.css') }}">

Upvotes: 3

Related Questions