Skip to content

Commit 21c3569

Browse files
committed
fix .gitignore
1 parent c0f4271 commit 21c3569

File tree

5 files changed

+115
-1
lines changed

5 files changed

+115
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/composer.phar
22

3+
/laravel/public/*
34
!/laravel/public/index.php
45
!/laravel/public/.htaccess
56
!/laravel/public/web.config
67
!/laravel/public/robots
78
!/laravel/public/mix-manifest.json
8-
/laravel/public/*
9+
910
/laravel/node_modules
1011
/laravel/public/hot
1112
/laravel/public/storage

laravel/public/.htaccess

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<IfModule mod_rewrite.c>
2+
<IfModule mod_negotiation.c>
3+
Options -MultiViews -Indexes
4+
</IfModule>
5+
6+
RewriteEngine On
7+
8+
# Handle Authorization Header
9+
RewriteCond %{HTTP:Authorization} .
10+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
11+
12+
# Redirect Trailing Slashes If Not A Folder...
13+
RewriteCond %{REQUEST_FILENAME} !-d
14+
RewriteCond %{REQUEST_URI} (.+)/$
15+
RewriteRule ^ %1 [L,R=301]
16+
17+
# Handle Front Controller...
18+
RewriteCond %{REQUEST_FILENAME} !-d
19+
RewriteCond %{REQUEST_FILENAME} !-f
20+
RewriteRule ^ index.php [L]
21+
</IfModule>

laravel/public/index.php

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<?php
2+
3+
/**
4+
* Laravel - A PHP Framework For Web Artisans
5+
*
6+
* @package Laravel
7+
* @author Taylor Otwell <[email protected]>
8+
*/
9+
10+
define('LARAVEL_START', microtime(true));
11+
12+
/*
13+
|--------------------------------------------------------------------------
14+
| Register The Auto Loader
15+
|--------------------------------------------------------------------------
16+
|
17+
| Composer provides a convenient, automatically generated class loader for
18+
| our application. We just need to utilize it! We'll simply require it
19+
| into the script here so that we don't have to worry about manual
20+
| loading any of our classes later on. It feels great to relax.
21+
|
22+
*/
23+
24+
require __DIR__.'/../vendor/autoload.php';
25+
26+
/*
27+
|--------------------------------------------------------------------------
28+
| Turn On The Lights
29+
|--------------------------------------------------------------------------
30+
|
31+
| We need to illuminate PHP development, so let us turn on the lights.
32+
| This bootstraps the framework and gets it ready for use, then it
33+
| will load up this application so that we can run it and send
34+
| the responses back to the browser and delight our users.
35+
|
36+
*/
37+
38+
$app = require_once __DIR__.'/../bootstrap/app.php';
39+
40+
/*
41+
|--------------------------------------------------------------------------
42+
| Run The Application
43+
|--------------------------------------------------------------------------
44+
|
45+
| Once we have the application, we can handle the incoming request
46+
| through the kernel, and send the associated response back to
47+
| the client's browser allowing them to enjoy the creative
48+
| and wonderful application we have prepared for them.
49+
|
50+
*/
51+
52+
$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);
53+
54+
$response = $kernel->handle(
55+
$request = Illuminate\Http\Request::capture()
56+
);
57+
58+
$response->send();
59+
60+
$kernel->terminate($request, $response);

laravel/public/mix-manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"/js/app.js": "/js/app.js",
3+
"/css/app.css": "/css/app.css"
4+
}

laravel/public/web.config

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!--
2+
Rewrites requires Microsoft URL Rewrite Module for IIS
3+
Download: https://www.microsoft.com/en-us/download/details.aspx?id=47337
4+
Debug Help: https://docs.microsoft.com/en-us/iis/extensions/url-rewrite-module/using-failed-request-tracing-to-trace-rewrite-rules
5+
-->
6+
<configuration>
7+
<system.webServer>
8+
<rewrite>
9+
<rules>
10+
<rule name="Imported Rule 1" stopProcessing="true">
11+
<match url="^(.*)/$" ignoreCase="false" />
12+
<conditions>
13+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
14+
</conditions>
15+
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
16+
</rule>
17+
<rule name="Imported Rule 2" stopProcessing="true">
18+
<match url="^" ignoreCase="false" />
19+
<conditions>
20+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
21+
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
22+
</conditions>
23+
<action type="Rewrite" url="index.php" />
24+
</rule>
25+
</rules>
26+
</rewrite>
27+
</system.webServer>
28+
</configuration>

0 commit comments

Comments
 (0)