【发布时间】:2020-07-02 01:17:13
【问题描述】:
Laravel 身份验证脚手架为其余视图创建布局。
问题很简单:如何把这个布局转成vue组件?
刀片文件。我需要转换为 Vue。
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name', 'Laravel') }}</title>
<script src="{{ asset('js/app.js') }}" defer></script>
<link rel="dns-prefetch" href="//fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
<link href=’https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900|Material+Icons' rel=”stylesheet”>
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
@yield('content')
</div>
</body>
</html>
【问题讨论】:
-
解析是什么意思?
-
也许我需要更具体的。我需要将刀片布局转换为 vue 组件。
-
创建一个名为
Login.vue的组件并将blade的标记放入该组件的<template>部分。在刀片中使用<login>组件。