Skip to content

Commit bd44cb0

Browse files
committed
Initial commit
0 parents  commit bd44cb0

File tree

440 files changed

+41869
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

440 files changed

+41869
-0
lines changed

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
indent_style = space
8+
indent_size = 4
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.env.example

+110
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
APP_NAME="Laravel Boilerplate"
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_URL=http://localhost
6+
7+
# Misc
8+
APP_READ_ONLY=false
9+
APP_READ_ONLY_LOGIN=true
10+
DEBUGBAR_ENABLED=false
11+
LOG_CHANNEL=daily
12+
13+
# Drivers
14+
DB_CONNECTION=mysql
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
QUEUE_CONNECTION=sync
18+
SESSION_DRIVER=file
19+
SESSION_LIFETIME=120
20+
21+
# Database
22+
DB_HOST=127.0.0.1
23+
DB_PORT=3306
24+
DB_DATABASE=laravel
25+
DB_USERNAME=root
26+
DB_PASSWORD=
27+
28+
# Queue
29+
REDIS_HOST=127.0.0.1
30+
REDIS_PASSWORD=null
31+
REDIS_PORT=6379
32+
33+
# Mail
34+
MAIL_MAILER=smtp
35+
MAIL_HOST=smtp.mailtrap.io
36+
MAIL_PORT=2525
37+
MAIL_USERNAME=null
38+
MAIL_PASSWORD=null
39+
MAIL_ENCRYPTION=null
40+
MAIL_FROM_ADDRESS=null
41+
MAIL_FROM_NAME="${APP_NAME}"
42+
43+
# AWS
44+
AWS_ACCESS_KEY_ID=
45+
AWS_SECRET_ACCESS_KEY=
46+
AWS_DEFAULT_REGION=us-east-1
47+
AWS_BUCKET=
48+
49+
# Pusher
50+
PUSHER_APP_ID=
51+
PUSHER_APP_KEY=
52+
PUSHER_APP_SECRET=
53+
PUSHER_APP_CLUSTER=mt1
54+
55+
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
56+
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
57+
58+
# Application
59+
60+
# Access
61+
ADMIN_REQUIRES_2FA=true
62+
CHANGE_EMAIL=true
63+
ENABLE_REGISTRATION=true
64+
PASSWORD_HISTORY=3
65+
SINGLE_LOGIN=false
66+
PASSWORD_EXPIRES_DAYS=180
67+
68+
# Captcha
69+
# Get your credentials at: https://www.google.com/recaptcha/admin
70+
LOGIN_CAPTCHA_STATUS=false
71+
REGISTRATION_CAPTCHA_STATUS=false
72+
73+
INVISIBLE_RECAPTCHA_SITEKEY=
74+
INVISIBLE_RECAPTCHA_SECRETKEY=
75+
INVISIBLE_RECAPTCHA_BADGEHIDE=false
76+
INVISIBLE_RECAPTCHA_DATABADGE='bottomright'
77+
INVISIBLE_RECAPTCHA_TIMEOUT=5
78+
INVISIBLE_RECAPTCHA_DEBUG=false
79+
80+
# Socialite Providers
81+
FACEBOOK_ACTIVE=false
82+
BITBUCKET_ACTIVE=false
83+
GITHUB_ACTIVE=false
84+
GOOGLE_ACTIVE=false
85+
LINKEDIN_ACTIVE=false
86+
TWITTER_ACTIVE=false
87+
88+
#FACEBOOK_CLIENT_ID=
89+
#FACEBOOK_CLIENT_SECRET=
90+
#FACEBOOK_REDIRECT=${APP_URL}/login/facebook/callback
91+
92+
#BITBUCKET_CLIENT_ID=
93+
#BITBUCKET_CLIENT_SECRET=
94+
#BITBUCKET_REDIRECT=${APP_URL}/login/bitbucket/callback
95+
96+
#GITHUB_CLIENT_ID=
97+
#GITHUB_CLIENT_SECRET=
98+
#GITHUB_REDIRECT=${APP_URL}/login/github/callback
99+
100+
#GOOGLE_CLIENT_ID=
101+
#GOOGLE_CLIENT_SECRET=
102+
#GOOGLE_REDIRECT=${APP_URL}/login/google/callback
103+
104+
#LINKEDIN_CLIENT_ID=
105+
#LINKEDIN_CLIENT_SECRET=
106+
#LINKEDIN_REDIRECT=${APP_URL}/login/linkedin/callback
107+
108+
#TWITTER_CLIENT_ID=
109+
#TWITTER_CLIENT_SECRET=
110+
#TWITTER_REDIRECT=${APP_URL}/login/twitter/callback

.gitattributes

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
* text=auto
2+
3+
# Enforce Unix newlines
4+
*.css text eol=lf linguist-vendored
5+
*.html text eol=lf
6+
*.js text eol=lf linguist-vendored
7+
*.json text eol=lf
8+
*.md text eol=lf
9+
*.scss text eol=lf linguist-vendored
10+
*.svg text eol=lf
11+
*.txt text eol=lf
12+
*.xml text eol=lf
13+
*.yml text eol=lf
14+
15+
# Don't diff or textually merge source maps
16+
*.map binary
17+
18+
CHANGELOG.md export-ignore

.github/CONTRIBUTING.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Contributing
2+
3+
Contributions are **welcome** and will be fully **credited**.
4+
5+
Please read and understand the contribution guide before creating an issue or pull request.
6+
7+
## Etiquette
8+
9+
This project is open source, and as such, the maintainers give their free time to build and maintain the source code
10+
held within. They make the code freely available in the hope that it will be of use to other developers. It would be
11+
extremely unfair for them to suffer abuse or anger for their hard work.
12+
13+
Please be considerate towards maintainers when raising issues or presenting pull requests. Let's show the
14+
world that developers are civilized and selfless people.
15+
16+
It's the duty of the maintainer to ensure that all submissions to the project are of sufficient
17+
quality to benefit the project. Many developers have different skillsets, strengths, and weaknesses. Respect the maintainer's decision, and do not be upset or abusive if your submission is not used.
18+
19+
## Viability
20+
21+
When requesting or submitting new features, first consider whether it might be useful to others. Open
22+
source projects are used by many developers, who may have entirely different needs to your own. Think about
23+
whether or not your feature is likely to be used by other users of the project.
24+
25+
## Procedure
26+
27+
Before filing an issue:
28+
29+
- Attempt to replicate the problem, to ensure that it wasn't a coincidental incident.
30+
- Check to make sure your feature suggestion isn't already present within the project.
31+
- Check the pull requests tab to ensure that the bug doesn't have a fix in progress.
32+
- Check the pull requests tab to ensure that the feature isn't already in progress.
33+
34+
Before submitting a pull request:
35+
36+
- Check the codebase to ensure that your feature doesn't already exist.
37+
- Check the pull requests to ensure that another person hasn't already submitted the feature or fix.
38+
39+
## Requirements
40+
41+
If the project maintainer has any additional requirements, you will find them listed here.
42+
43+
- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](https://pear.php.net/package/PHP_CodeSniffer).
44+
45+
- **Add tests!** - Your patch won't be accepted if it doesn't have tests.
46+
47+
- **Document any change in behaviour** - Make sure the `README.md` and any other relevant documentation are kept up-to-date.
48+
49+
- **Consider our release cycle** - We try to follow [SemVer v2.0.0](https://semver.org/). Randomly breaking public APIs is not an option.
50+
51+
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
52+
53+
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please [squash them](https://www.git-scm.com/book/en/v2/Git-Tools-Rewriting-History#Changing-Multiple-Commit-Messages) before submitting.
54+
55+
**Happy coding**!

.github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: [rappasoft]

.github/ISSUE_TEMPLATE.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Before you create an issue make sure that:
2+
- Your issue is **strictly related to the boilerplate** itself. Questions about Laravel in general belongs to the [laravel](http://laravel.io/forum) or [laracasts](https://laracasts.com/discuss/) forums.
3+
- You have read the [documentation](https://laravel-boilerplate.com) thoroughly.
4+
- You have searched for a similar issue among all the former issues (even closed ones).
5+
- You have tried to replicate the issue with a clean install of the project.
6+
7+
# Be explicit
8+
Try to be as explicit as you can when you ask anything.

.github/workflows/main.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- development
8+
9+
jobs:
10+
run-tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Copy ENV Laravel Configuration for CI
15+
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
16+
- name: Install Dependencies
17+
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
18+
- name: Install NPM Dependencies
19+
run: npm install
20+
- name: Compile Assets
21+
run: npm run production
22+
- name: Generate Key
23+
run: php artisan key:generate
24+
- name: Execute Tests
25+
run: vendor/bin/phpunit

.gitignore

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/coverage
2+
/node_modules
3+
/public/css
4+
/public/js
5+
/public/fonts
6+
/public/hot
7+
/public/storage
8+
/public/mix-manifest.json
9+
/storage/*.key
10+
/vendor
11+
/.vscode
12+
*.sublime-project
13+
*.sublime-workspace
14+
_ide_helper.php
15+
.DS_Store
16+
.env
17+
.env.backup
18+
.idea
19+
.php_cs.cache
20+
.phpunit.result.cache
21+
.phpstorm.meta.php
22+
.project
23+
composer.phar
24+
coverage.xml
25+
error.log
26+
Homestead.json
27+
Homestead.yaml
28+
npm-debug.log
29+
output.txt
30+
Thumbs.db
31+
yarn-error.log

.php_cs

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?php
2+
3+
$finder = Symfony\Component\Finder\Finder::create()
4+
->notPath('bootstrap/*')
5+
->notPath('storage/*')
6+
->notPath('resources/view/mail/*')
7+
->in([
8+
__DIR__ . '/app',
9+
__DIR__ . '/config',
10+
__DIR__ . '/database/factories',
11+
__DIR__ . '/database/seeds',
12+
__DIR__ . '/resources/lang',
13+
__DIR__ . '/routes',
14+
__DIR__ . '/tests',
15+
])
16+
->name('*.php')
17+
->notName('*.blade.php')
18+
->ignoreDotFiles(true)
19+
->ignoreVCS(true);
20+
21+
return PhpCsFixer\Config::create()
22+
->setRules([
23+
'@PSR2' => true,
24+
'array_syntax' => ['syntax' => 'short'],
25+
'ordered_imports' => ['sortAlgorithm' => 'alpha'],
26+
'no_unused_imports' => true,
27+
'not_operator_with_successor_space' => true,
28+
'trailing_comma_in_multiline_array' => true,
29+
'phpdoc_scalar' => true,
30+
'unary_operator_spaces' => true,
31+
'binary_operator_spaces' => true,
32+
'blank_line_before_statement' => [
33+
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
34+
],
35+
'phpdoc_single_line_var_spacing' => true,
36+
'phpdoc_var_without_name' => true,
37+
'method_argument_space' => [
38+
'on_multiline' => 'ensure_fully_multiline',
39+
'keep_multiple_spaces_after_comma' => true,
40+
]
41+
])
42+
->setFinder($finder);

.styleci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: laravel

0 commit comments

Comments
 (0)