added views
This commit is contained in:
parent
13c46b3069
commit
0a0fccb309
4 changed files with 47 additions and 34 deletions
|
@ -13,7 +13,12 @@ class AppServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function boot()
|
||||
{
|
||||
//
|
||||
if(!file_exists(database_path(env('DB_DATABASE')))) {
|
||||
// first time setup
|
||||
//die("No Database");
|
||||
touch(database_path(env('DB_DATABASE')));
|
||||
\Artisan::call('migrate', array('--path' => 'app/migrations', '--force' => true));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -36,7 +36,7 @@ return [
|
|||
'sqlite' => [
|
||||
'driver' => 'sqlite',
|
||||
//'database' => env('DB_DATABASE', database_path('database.sqlite')),
|
||||
'database' => database_path(env('DB_DATABASE'))
|
||||
'database' => database_path(env('DB_DATABASE')),
|
||||
'prefix' => '',
|
||||
],
|
||||
|
||||
|
|
36
resources/views/app.blade.php
Normal file
36
resources/views/app.blade.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<title>{{ config('app.name') }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ mix('/css/app.css') }}" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<header>
|
||||
test
|
||||
</header>
|
||||
<main>
|
||||
@yield('content')
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
test
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,38 +1,10 @@
|
|||
<!doctype html>
|
||||
<html lang="{{ app()->getLocale() }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
@extends('app')
|
||||
|
||||
<title>{{ config('app.name') }}</title>
|
||||
@section('content')
|
||||
|
||||
<link rel="stylesheet" href="{{ mix('/css/app.css') }}" type="text/css" />
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div id="app">
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
<li><a href=""><i class="fa fa-dash"></i></a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="content">
|
||||
<header>
|
||||
test
|
||||
</header>
|
||||
<main>
|
||||
<section class="item">
|
||||
Item
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<footer>
|
||||
test
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@endsection
|
Loading…
Add table
Reference in a new issue