Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
6c67c696
Unverified
Commit
6c67c696
authored
Sep 02, 2017
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update core files to laravel 5.5
parent
65f15b69
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
38 deletions
+32
-38
autoload.php
bootstrap/autoload.php
+0
-34
UserFactory.php
database/factories/UserFactory.php
+25
-0
.htaccess
public/.htaccess
+2
-1
index.php
public/index.php
+5
-3
No files found.
bootstrap/autoload.php
deleted
100644 → 0
View file @
65f15b69
<?php
define
(
'LARAVEL_START'
,
microtime
(
true
));
/*
|--------------------------------------------------------------------------
| Register The Composer Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader
| for our application. We just need to utilize it! We'll require it
| into the script here so that we do not have to worry about the
| loading of any our classes "manually". Feels great to relax.
|
*/
require
__DIR__
.
'/../vendor/autoload.php'
;
/*
|--------------------------------------------------------------------------
| Include The Compiled Class File
|--------------------------------------------------------------------------
|
| To dramatically increase your application's performance, you may use a
| compiled class file which contains all of the classes commonly used
| by a request. The Artisan "optimize" is used to create this file.
|
*/
$compiledPath
=
__DIR__
.
'/cache/compiled.php'
;
if
(
file_exists
(
$compiledPath
))
{
require
$compiledPath
;
}
database/factories/
Model
Factory.php
→
database/factories/
User
Factory.php
View file @
6c67c696
<?php
use
Faker\Generator
as
Faker
;
/*
|--------------------------------------------------------------------------
| Model Factories
|--------------------------------------------------------------------------
|
|
Here you may define all of your model factories. Model factories give
| you
a convenient way to create models for testing and seeding your
|
database. Just tell the factory how a default model should look
.
|
This directory should contain each of the model factory definitions for
| you
r application. Factories provide a convenient way to generate new
|
model instances for testing / seeding your application's database
.
|
*/
$factory
->
define
(
App\User
::
class
,
function
(
Faker\Generator
$faker
)
{
$factory
->
define
(
App\User
::
class
,
function
(
Faker
$faker
)
{
static
$password
;
return
[
'name'
=>
$faker
->
name
,
'email'
=>
$faker
->
safeEmail
,
'password'
=>
bcrypt
(
str_random
(
10
)
),
'email'
=>
$faker
->
unique
()
->
safeEmail
,
'password'
=>
$password
?:
$password
=
bcrypt
(
'secret'
),
'remember_token'
=>
str_random
(
10
),
];
});
public/.htaccess
View file @
6c67c696
...
...
@@ -7,7 +7,8 @@
# Redirect Trailing Slashes If Not A Folder...
RewriteCond
%{REQUEST_FILENAME} !-d
RewriteRule
^(.*)/$ /$1 [L,R=301]
RewriteCond
%{REQUEST_URI} (.+)/$
RewriteRule
^ %1 [L,R=301]
# Handle Front Controller...
RewriteCond
%{REQUEST_FILENAME} !-d
...
...
public/index.php
View file @
6c67c696
...
...
@@ -4,9 +4,11 @@
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylor
otwell@gmai
l.com>
* @author Taylor Otwell <taylor
@larave
l.com>
*/
define
(
'LARAVEL_START'
,
microtime
(
true
));
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
...
...
@@ -15,11 +17,11 @@
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels
nice
to relax.
| loading any of our classes later on. It feels
great
to relax.
|
*/
require
__DIR__
.
'/../
bootstrap
/autoload.php'
;
require
__DIR__
.
'/../
vendor
/autoload.php'
;
/*
|--------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment