Skip to content

Commit c0b23aa

Browse files
committed
개발 계획과 준비
1 parent 8223c00 commit c0b23aa

File tree

24 files changed

+208
-158
lines changed

24 files changed

+208
-158
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ APP_ENV=local
22
APP_KEY=base64:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
33
APP_DEBUG=true
44
APP_LOG_LEVEL=debug
5-
APP_URL=http://localhost
5+
APP_URL=http://myapp.dev:8000
66

77
DB_CONNECTION=mysql
88
DB_HOST=127.0.0.1

app/Author.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/Http/Controllers/HomeController.php

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
namespace App\Http\Controllers;
44

5-
use Illuminate\Http\Request;
6-
75
class HomeController extends Controller
86
{
97
/**
@@ -23,6 +21,17 @@ public function __construct()
2321
*/
2422
public function index()
2523
{
24+
// flash('환영합니다.');
25+
26+
// flash()->success('성공했습니다.');
27+
// flash('성공했습니다.', 'success');
28+
29+
// flash()->warning('경고! 누구세요?');
30+
// flash('경고! 누구세요?', 'warning');
31+
32+
// flash()->danger('오류가 발생했습니다.');
33+
// flash('오류가 발생했습니다.', 'danger');
34+
2635
return view('home');
2736
}
2837
}

app/Http/Controllers/WelcomeController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44

55
class WelcomeController extends Controller
66
{
7+
/**
8+
* Say hello to visitors.
9+
*
10+
* @return \Illuminate\Contracts\View\Factory
11+
*/
712
public function index() {
813
return view('welcome');
914
}

app/Post.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

app/helpers.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
<?php
22

33
if (! function_exists('markdown')) {
4+
/**
5+
* Compile Markdown to HTML.
6+
*
7+
* @param string|null $text
8+
* @return string
9+
*/
410
function markdown($text = null) {
511
return app(ParsedownExtra::class)->text($text);
612
}

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"guzzlehttp/guzzle": "~5.3|~6.0",
1515
"erusev/parsedown-extra": " ~0.7.1",
1616
"barryvdh/laravel-debugbar": "2.2.*",
17-
"intervention/image": "2.3.*"
17+
"intervention/image": "2.3.*",
18+
"laracasts/flash": " 2.0.*"
1819
},
1920
"require-dev": {
2021
"fzaninotto/faker": "~1.4",

composer.lock

Lines changed: 45 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

config/app.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
* Package Service Providers...
168168
*/
169169
Intervention\Image\ImageServiceProvider::class,
170+
Laracasts\Flash\FlashServiceProvider::class,
170171

171172
/*
172173
* Application Service Providers...
@@ -228,6 +229,7 @@
228229
* 3rd Party Facades
229230
*/
230231
'Image' => Intervention\Image\Facades\Image::class,
232+
'Flash' => Laracasts\Flash\Flash::class,
231233

232234
],
233235

config/project.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
return [
4+
'url' => 'http://myapp.dev:8000',
5+
'description' => '',
6+
];

0 commit comments

Comments
 (0)