如何解决laravel无法执行引导
我正在尝试执行我的朋友代码,该代码在他的laravel项目中工作得很好,但是由于某种原因无法在我的项目中工作。
我确实安装了auth软件包。
我们都有幼虫7。
这是我的代码:-
@extends('layouts.app')
@section('content')
<!DOCTYPE>
<html>
<head>
<title></title>
<Meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="{{asset('/css/problemCreate.css') }}">
</head>
<body>
<div class="container">
<div class="row">
<div class="daddy-div col-10 d-md-flex flex-md-row">
<div class="disclaimer col-12 col-md-6 text-center">
<h1>disclaimer</h1>
<br>- saamsua.
<br>- Maar Hanna zamiloos umaata.
<br>- jammiya Ammiliyaa here.
<div class="bg">
<img id="bg" src="/png/sleepin face planets.png" alt="">
</div>
</div>
<div class="col-12 col-md-6 px-0">
<form method="POST" action="/store">
@csrf
<!-- <div class="form-group row"> -->
<textarea placeholder="Type Here..." id="problem" type="text"
class="form-control @error('problem') is-invalid @enderror" name="problem"
value="{{ old('problem') }}" required autocomplete="problem" autofocus></textarea>
@error('problem')
<span class="invalid-Feedback" role="alert">
<strong>{{ $message }}</strong>
</span>
@enderror
<div class="col-md-12">
<div class="eye col-9 text-center">
<img src="/png/girl.png">
</div>
<button class="float-right" type="submit">
{{ __('Share') }}
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="stare">
<img src="/png/stare.png">
</div>
<div class="thinkMob d-block d-md-none">
<img src="/png/sleepindark.png" alt="">
</div>
</body>
</html>
@endsection
<!doctype html>
<html lang="{{ str_replace('_','-',app()->getLocale()) }}">
<head>
<Meta charset="utf-8">
<Meta name="viewport" content="width=device-width,initial-scale=1">
<!-- CSRF Token -->
<Meta name="csrf-token" content="{{ csrf_token() }}">
<title>{{ config('app.name','White') }}</title>
<!-- Scripts -->
<script src="{{ asset('js/app.js') }}" defer></script>
<script src="https://kit.fontawesome.com/cefc681422.js" crossorigin="anonymous"></script>
<!-- Fonts -->
<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/icon?family=Material+Icons" rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<!-- Styles -->
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
<div id="app">
<nav class="navbar navbar-expand-md navbar-custom shadow-sm" style="
background-color: #304157;
">
<div class="container">
<a class="navbar-brand d-flex" href="{{ url('/') }}">
<div><img src="/png/w.png" style="
position: relative;
height: 28px;
left: -35px;
" class="pr-2" ></div>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<!-- Left Side Of Navbar -->
<ul class="navbar-nav mr-auto">
</ul>
<!-- Right Side Of Navbar -->
<ul class="navbar-nav ml-auto">
<a class="navbar-brand" href="/public-problem" style="color: white;
position: relative;
right: 530px;
">
<i class="fa fa-globe fa-lg" aria-hidden="true"></i>
</a>
<a class="navbar-brand" href="{{ url('/chat') }}" style="color: white;
position: relative;
right: 400px;
">
<i class="fa fa-paper-plane fa-lg" aria-hidden="true"></i>
</a>
<a class="navbar-brand" href="{{ url('/post/index') }}" style="color: white;
position: relative;
right: 250px;
">
<i class="fa fa-envelope-o fa-lg" aria-hidden="true"></i>
</a>
<!-- Authentication Links -->
@guest
<li class="nav-item">
<a class="nav-link" href="{{ route('login') }}" style="color: white;">{{ __('Login') }}</a>
</li>
@if (Route::has('register'))
<li class="nav-item">
<a class="nav-link" href="{{ route('register') }}" style="color: white;">{{ __('Register') }}</a>
</li>
@endif
@else
<li class="nav-item dropdown">
<a id="navbarDropdown" class="nav-link dropdown-toggle " href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre style="color: white;
font-size-adjust: 0.58;
position: relative;
right: -20px;
bottom: -3px;
">
<b> {{ Auth::user()->name }} </b> <span class="caret"></span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<a class="dropdown-item" style=" color: black;" href="{{ route('logout') }}"
onclick="event.preventDefault();
document.getElementById('logout-form').submit();" style="color: white;">
{{ __('logout') }}
</a>
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
@csrf
</form>
</div>
</li>
@endguest
</ul>
</div>
</div>
</nav>
<main class="py-4">
@yield('content')
</main>
</div>
</body>
</html>
以下是输出:-
我希望这些信息足够。
谁能解释我在做什么错。
我的朋友正在运行Windows 10,而我正在使用Zorin OS。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。