在免费 000webhsot 上上传我的 laravel 项目后,用户部分可以正常工作,但管理部分会出现此错误 1-> "View [admin\includes\app] not found "

after upload my laravel project on free 000webhsot, user part is working but admin part give this error 1-> "View [admin\includes\app] not found "

我尝试用 laravel 开发一个简单的博客,在本地主机上一切正常,但是当我将这个项目上传到 000webhsot(作为免费热点)时,用户部分正常工作,但在管理部分,当我登录管理部分我收到此错误。

未找到视图 [admin\includes\app]。 (查看:/storage/ssd1/425/7737425/blog/resources/views/admin/home.blade.php)

[错误视图][1] [1]: https://i.stack.imgur.com/CF62K.png .

这是"view\admin\includes\app.blade.php"代码

<!DOCTYPE html>
<html lang="en">
<head>
    @include('admin.includes.head')
</head>

<body class="hold-transition skin-blue sidebar-mini">
    <div class="wrapper">
        @include('admin.includes.header')
        @include('admin.includes.sidebar')


        @section('main-content')
            @show

        @include('admin.includes.footer')
    </div>
</body>
</html>

这是"resources/views/admin/home.blade.php"代码

@extends('admin\includes\app')

@section('main-content')

<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Blank page
            <small>it all starts here</small>
          </h1>
          <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
            <li><a href="#">Examples</a></li>
            <li class="active">Blank page</li>
          </ol>
        </section>

        <!-- Main content -->
        <section class="content">

          <!-- Default box -->
          <div class="box">
            <div class="box-header with-border">
              <h3 class="box-title">Title</h3>

              <div class="box-tools pull-right">
                <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip"
                        title="Collapse">
                  <i class="fa fa-minus"></i></button>
                <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                  <i class="fa fa-times"></i></button>
              </div>
            </div>
            <div class="box-body">
              Start creating your amazing application!
            </div>
            <!-- /.box-body -->
            <div class="box-footer">
              Footer
            </div>
            <!-- /.box-footer-->
          </div>
          <!-- /.box -->

        </section>
        <!-- /.content -->
      </div>
@endsection

"web.php"代码在这里

<?php

// route for user part //
Route::group(['namespace'=>'user'],function(){

    Route::get('/','homeController@index' );
    //post routes
    Route::get('/post/{slug}','postController@post');
    //tag routes
    Route::get('/post/tags', 'homeController@tags');
    //category routes
    Route::get('/post/category/{category}', 'homeController@category')->name('category');


});
// route for user part end //



// route for admin part //

Route::group(['namespace'=>'admin'],function(){

    Route::get('/admin/home','homeController@home')->name('admin.home');
    //user routes
    Route::resource('/admin/user','userController');
    //post routes
    Route::resource('/admin/post','postController');
    //tags routes
    Route::resource('/admin/tags','tagsController');
    //category routes
    Route::resource('/admin/category','categoryController');

    //Admin auth Routes
    Route::get('admin-login', 'Auth\LoginController@showLoginForm')->name('admin.login');
    Route::post('admin-login', 'Auth\LoginController@login');
});
// route for admin part end//

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

您正在扩展一个不存在的视图:

@extends('admin\includes\app')

使用点符号应该可以。

@extends('admin.includes.app')