1<!-- Welcome to the Application -->
2class Application extends Framework
3{
4 public function index()
5 {
6 return View::make('welcome', [
7 'version' => '{{ Illuminate\Foundation\Application::VERSION }}',
8 'php' => '{{ PHP_VERSION }}',
9 'status' => 'Running'
10 ]);
11 }
12
13 /**
14 * Useful Links for Development
15 */
16 public function resources()
17 {
18 return [
19 'docs' => 'https://laravel.com/docs',
20 'news' => 'https://laravel-news.com',
21 'casts' => 'https://laracasts.com'
22 ];
23 }
24
25 /*
26 * Authentication Status
27 */
28 @if (Route::has('login'))
29 public function auth()
30 {
31 @auth
32 return User::find({{ auth()->user()->id }}); // Go to Home
33 @else
35 @endauth
36 }
37 @endif
38}