Compare commits
15 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
0f8346968b | 9 years ago |
|
|
9c7cec81a8 | 9 years ago |
|
|
85ddf3b2c1 | 10 years ago |
|
|
fc0f7ace95 | 10 years ago |
|
|
a2c3d64bde | 10 years ago |
|
|
cf09dfbdf8 | 10 years ago |
|
|
bb0fce21b3 | 10 years ago |
|
|
b49f5202a5 | 10 years ago |
|
|
26279df519 | 10 years ago |
|
|
de04c427ba | 10 years ago |
|
|
8616fbba19 | 10 years ago |
|
|
c088af36a9 | 10 years ago |
|
|
33edcabd36 | 10 years ago |
|
|
1c229dfa99 | 10 years ago |
|
|
52f226adfa | 10 years ago |
@ -1,4 +1,6 @@
|
|||||||
/vendor
|
/vendor
|
||||||
/node_modules
|
/node_modules
|
||||||
|
/public/storage
|
||||||
Homestead.yaml
|
Homestead.yaml
|
||||||
Homestead.json
|
Homestead.json
|
||||||
|
.env
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,5 +0,0 @@
|
|||||||
suites:
|
|
||||||
main:
|
|
||||||
namespace: App
|
|
||||||
psr4_prefix: App
|
|
||||||
src_path: app
|
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
<configuration>
|
||||||
|
<system.webServer>
|
||||||
|
<rewrite>
|
||||||
|
<rules>
|
||||||
|
<rule name="Imported Rule 1" stopProcessing="true">
|
||||||
|
<match url="^(.*)/$" ignoreCase="false" />
|
||||||
|
<conditions>
|
||||||
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||||||
|
</conditions>
|
||||||
|
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
|
||||||
|
</rule>
|
||||||
|
<rule name="Imported Rule 2" stopProcessing="true">
|
||||||
|
<match url="^" ignoreCase="false" />
|
||||||
|
<conditions>
|
||||||
|
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
|
||||||
|
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
|
||||||
|
</conditions>
|
||||||
|
<action type="Rewrite" url="index.php" />
|
||||||
|
</rule>
|
||||||
|
</rules>
|
||||||
|
</rewrite>
|
||||||
|
</system.webServer>
|
||||||
|
</configuration>
|
||||||
@ -1,3 +1,15 @@
|
|||||||
# Laravel Quickstart - Basic
|
# Laravel Quickstart - Basic
|
||||||
|
|
||||||
http://laravel.com/docs/quickstart
|
## Quck Installation
|
||||||
|
|
||||||
|
git clone https://github.com/laravel/quickstart-basic quickstart
|
||||||
|
|
||||||
|
cd quickstart
|
||||||
|
|
||||||
|
composer install
|
||||||
|
|
||||||
|
php artisan migrate
|
||||||
|
|
||||||
|
php artisan serve
|
||||||
|
|
||||||
|
[Complete Tutorial](https://laravel.com/docs/5.2/quickstart)
|
||||||
|
|||||||
@ -1,14 +1,14 @@
|
|||||||
@if (count($errors) > 0)
|
@if (count($errors) > 0)
|
||||||
<!-- Form Error List -->
|
<!-- Form Error List -->
|
||||||
<div class="alert alert-danger">
|
<div class="alert alert-danger">
|
||||||
<strong>Whoops! Something went wrong!</strong>
|
<strong>Whoops! Something went wrong!</strong>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
@foreach ($errors->all() as $error)
|
@foreach ($errors->all() as $error)
|
||||||
<li>{{ $error }}</li>
|
<li>{{ $error }}</li>
|
||||||
@endforeach
|
@endforeach
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
@ -1,65 +1,49 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
|
||||||
<title>Laravel Quickstart - Basic</title>
|
<title>Laravel Quickstart - Basic</title>
|
||||||
|
|
||||||
<link href="https://fonts.googleapis.com/css?family=Raleway:300,400,500,700" rel="stylesheet" type="text/css">
|
<!-- Fonts -->
|
||||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel='stylesheet' type='text/css'>
|
||||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet" type="text/css">
|
<link href="https://fonts.googleapis.com/css?family=Lato:100,300,400,700" rel='stylesheet' type='text/css'>
|
||||||
|
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0-alpha1/jquery.min.js"></script>
|
<!-- Styles -->
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
|
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
|
||||||
|
{{-- <link href="{{ elixir('css/app.css') }}" rel="stylesheet"> --}}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
font-family: 'Raleway';
|
font-family: 'Lato';
|
||||||
margin-top: 25px;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
button .fa {
|
.fa-btn {
|
||||||
margin-right: 6px;
|
margin-right: 6px;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
.table-text div {
|
|
||||||
padding-top: 6px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script>
|
|
||||||
$(function () {
|
|
||||||
$('#task-name').focus();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
|
<body id="app-layout">
|
||||||
<body>
|
<nav class="navbar navbar-default">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<nav class="navbar navbar-default">
|
<div class="navbar-header">
|
||||||
<div class="container-fluid">
|
|
||||||
<div class="navbar-header">
|
<!-- Branding Image -->
|
||||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
<a class="navbar-brand" href="{{ url('/') }}">
|
||||||
<span class="sr-only">Toggle navigation</span>
|
Task List
|
||||||
<span class="icon-bar"></span>
|
</a>
|
||||||
<span class="icon-bar"></span>
|
</div>
|
||||||
<span class="icon-bar"></span>
|
|
||||||
</button>
|
</div>
|
||||||
|
</nav>
|
||||||
<a class="navbar-brand" href="#">Task List</a>
|
|
||||||
</div>
|
@yield('content')
|
||||||
|
|
||||||
<div id="navbar" class="navbar-collapse collapse">
|
<!-- JavaScripts -->
|
||||||
<ul class="nav navbar-nav">
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
|
||||||
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
|
||||||
</ul>
|
{{-- <script src="{{ elixir('js/app.js') }}"></script> --}}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
@yield('content')
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -1,78 +1,78 @@
|
|||||||
@extends('layouts.app')
|
@extends('layouts.app')
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="col-sm-offset-2 col-sm-8">
|
<div class="col-sm-offset-2 col-sm-8">
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
New Task
|
New Task
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<!-- Display Validation Errors -->
|
<!-- Display Validation Errors -->
|
||||||
@include('common.errors')
|
@include('common.errors')
|
||||||
|
|
||||||
<!-- New Task Form -->
|
<!-- New Task Form -->
|
||||||
<form action="/task" method="POST" class="form-horizontal">
|
<form action="{{ url('task')}}" method="POST" class="form-horizontal">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
|
|
||||||
<!-- Task Name -->
|
<!-- Task Name -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="task-name" class="col-sm-3 control-label">Task</label>
|
<label for="task-name" class="col-sm-3 control-label">Task</label>
|
||||||
|
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<input type="text" name="name" id="task-name" class="form-control" value="{{ old('name') }}">
|
<input type="text" name="name" id="task-name" class="form-control" value="{{ old('task') }}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Add Task Button -->
|
<!-- Add Task Button -->
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="col-sm-offset-3 col-sm-6">
|
<div class="col-sm-offset-3 col-sm-6">
|
||||||
<button type="submit" class="btn btn-default">
|
<button type="submit" class="btn btn-default">
|
||||||
<i class="fa fa-plus"></i>Add Task
|
<i class="fa fa-btn fa-plus"></i>Add Task
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Current Tasks -->
|
<!-- Current Tasks -->
|
||||||
@if (count($tasks) > 0)
|
@if (count($tasks) > 0)
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
Current Tasks
|
Current Tasks
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<table class="table table-striped task-table">
|
<table class="table table-striped task-table">
|
||||||
<thead>
|
<thead>
|
||||||
<th>Task</th>
|
<th>Task</th>
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach ($tasks as $task)
|
@foreach ($tasks as $task)
|
||||||
<tr>
|
<tr>
|
||||||
<td class="table-text"><div>{{ $task->name }}</div></td>
|
<td class="table-text"><div>{{ $task->name }}</div></td>
|
||||||
|
|
||||||
<!-- Task Delete Button -->
|
<!-- Task Delete Button -->
|
||||||
<td>
|
<td>
|
||||||
<form action="/task/{{ $task->id }}" method="POST">
|
<form action="{{ url('task/'.$task->id) }}" method="POST">
|
||||||
{{ csrf_field() }}
|
{{ csrf_field() }}
|
||||||
{{ method_field('DELETE') }}
|
{{ method_field('DELETE') }}
|
||||||
|
|
||||||
<button type="submit" class="btn btn-danger">
|
<button type="submit" class="btn btn-danger">
|
||||||
<i class="fa fa-trash"></i>Delete
|
<i class="fa fa-btn fa-trash"></i>Delete
|
||||||
</button>
|
</button>
|
||||||
</form>
|
</form>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endsection
|
@endsection
|
||||||
|
|||||||
@ -0,0 +1,45 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Laravel</title>
|
||||||
|
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Lato:100" rel="stylesheet" type="text/css">
|
||||||
|
|
||||||
|
<style>
|
||||||
|
html, body {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
width: 100%;
|
||||||
|
display: table;
|
||||||
|
font-weight: 100;
|
||||||
|
font-family: 'Lato';
|
||||||
|
}
|
||||||
|
|
||||||
|
.container {
|
||||||
|
text-align: center;
|
||||||
|
display: table-cell;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
text-align: center;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 96px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="container">
|
||||||
|
<div class="content">
|
||||||
|
<div class="title">Laravel 5</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@ -1,2 +1,3 @@
|
|||||||
*
|
*
|
||||||
!.gitignore
|
!public/
|
||||||
|
!.gitignore
|
||||||
|
|||||||
@ -0,0 +1,2 @@
|
|||||||
|
*
|
||||||
|
!.gitignore
|
||||||
Loading…
Reference in new issue