Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit b826386

Browse files
committed
added missing public folder
1 parent 6f8de6d commit b826386

File tree

6 files changed

+107
-1
lines changed

6 files changed

+107
-1
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ Homestead.json
77
Homestead.yaml
88
.env
99
.DS_Store
10-
/public
10+
/public/media
11+
/public/css
12+
/public/fonts
13+
/public/js

public/.htaccess

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

public/favicon.ico

97.3 KB
Binary file not shown.

public/index.php

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

public/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

public/web.config

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<configuration>
2+
<system.webServer>
3+
<rewrite>
4+
<rules>
5+
<rule name="Imported Rule 1" stopProcessing="true">
6+
<match url="^(.*)/$" ignoreCase="false" />
7+
<conditions>
8+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
9+
</conditions>
10+
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
11+
</rule>
12+
<rule name="Imported Rule 2" stopProcessing="true">
13+
<match url="^" ignoreCase="false" />
14+
<conditions>
15+
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
16+
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
17+
</conditions>
18+
<action type="Rewrite" url="index.php" />
19+
</rule>
20+
</rules>
21+
</rewrite>
22+
</system.webServer>
23+
</configuration>

0 commit comments

Comments
 (0)