Skip to content

Commit 4dd4fff

Browse files
authored
Merge pull request #360 from LavaLite/develop
Update service provider
2 parents d50ca68 + 8b21c10 commit 4dd4fff

File tree

5 files changed

+129
-7
lines changed

5 files changed

+129
-7
lines changed

app/Http/Middleware/TrustProxies.php

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
namespace App\Http\Middleware;
44

5-
use Fideloper\Proxy\TrustProxies as Middleware;
5+
use Illuminate\Http\Middleware\TrustProxies as Middleware;
66
use Illuminate\Http\Request;
77

88
class TrustProxies extends Middleware
@@ -19,5 +19,10 @@ class TrustProxies extends Middleware
1919
*
2020
* @var int
2121
*/
22-
protected $headers = Request::HEADER_X_FORWARDED_ALL;
23-
}
22+
protected $headers =
23+
Request::HEADER_X_FORWARDED_FOR |
24+
Request::HEADER_X_FORWARDED_HOST |
25+
Request::HEADER_X_FORWARDED_PORT |
26+
Request::HEADER_X_FORWARDED_PROTO |
27+
Request::HEADER_X_FORWARDED_AWS_ELB;
28+
}

app/Litepie/helpers.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php

database/migrations/2017_11_09_100002_create_role_user_table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public function up()
1717
Schema::create('role_user', function (Blueprint $table) {
1818
$table->increments('id')->unsigned();
1919
$table->integer('role_id')->unsigned()->index();
20-
$table->foreign('role_id')->references('id')->on('roles')->onDelete('cascade');
20+
$table->foreign('role_id')->references('id')->on('roles');
2121
$table->integer('user_id')->unsigned()->index();
22-
$table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
22+
$table->foreign('user_id')->references('id')->on('users');
2323
$table->timestamps();
2424
});
2525
}

database/seeders/DatabaseSeeder.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
namespace Database\Seeders;
44

55
use Illuminate\Database\Seeder;
6-
use DB;
6+
use Litecms\Block\Seeds\BlockTableSeeder;
7+
use Litecms\Blog\Seeds\BlogTableSeeder;
8+
use Litecms\Contact\Seeds\ContactTableSeeder;
9+
use Litecms\Page\Seeds\PageTableSeeder;
710

811
class DatabaseSeeder extends Seeder
912
{
@@ -20,5 +23,10 @@ public function run()
2023
$this->call(TeamTableSeeder::class);
2124
$this->call(ClientTableSeeder::class);
2225
$this->call(SettingTableSeeder::class);
26+
27+
$this->call(BlockTableSeeder::class);
28+
$this->call(BlogTableSeeder::class);
29+
$this->call(ContactTableSeeder::class);
30+
$this->call(PageTableSeeder::class);
2331
}
2432
}

public/themes/.gitignore

100644100755
Lines changed: 109 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,109 @@
1-
*
1+
# ignore log files and databases
2+
*.log
3+
*.sql
4+
*.sqlite
5+
6+
# ignore compiled files
7+
*.com
8+
*.class
9+
*.dll
10+
*.exe
11+
*.o
12+
*.so
13+
14+
# ignore packaged files
15+
*.7z
16+
*.dmg
17+
*.gz
18+
*.iso
19+
*.jar
20+
*.rar
21+
*.tar
22+
*.zip
23+
24+
# ignore OS generated files
25+
ehthumbs.db
26+
Thumbs.db
27+
.DS_Store
28+
.DS_Store?
29+
._*
30+
.Spotlight-V100
31+
.Trashes
32+
33+
# ignore Editor files
34+
*.sublime-project
35+
*.sublime-workspace
36+
*.komodoproject
37+
_ide_helper.php
38+
/.idea
39+
/.vscode
40+
# Eclipse project files
41+
.buildpath
42+
.project
43+
.settings/
44+
workspace.xml
45+
46+
# Ignore cache
47+
.cache/
48+
49+
# Ignore user created files :)
50+
*.bak
51+
*.orig
52+
53+
# Ignore system files
54+
.bash_history
55+
LICENSE_AFL.txt
56+
LICENSE.html
57+
LICENSE.txt
58+
LICENSE_EE*
59+
RELEASE_NOTES.txt
60+
.ssh/
61+
error_log
62+
# .htpasswds
63+
# /.htaccess
64+
php.ini.sample
65+
.modgit/
66+
_vti_bin/
67+
_vti_cnf/
68+
_vti_inf.html
69+
_vti_log/
70+
_vti_pvt/
71+
_vti_txt/
72+
tmp/
73+
php.ini
74+
_old/
75+
# .htpasswds/
76+
# .htpasswd
77+
.viminfo
78+
.profile
79+
.bashrc
80+
.bash_logout
81+
.bash_history
82+
.modgit/
83+
.modman/
84+
pkginfo
85+
nohup.out
86+
Homestead.yaml
87+
Homestead.json
88+
/.vagrant
89+
.phpunit.result.cache
90+
91+
#Laravel Specific files
92+
/vendor
93+
.env
94+
.env.backup
95+
!.env.example
96+
# /public/.htaccess
97+
# storage/*
98+
# !storage/framework/cache/
99+
# !storage/framework/sessions/
100+
# !storage/framework/views/
101+
/storage/*.key
102+
/node_modules
103+
/public/hot
104+
/public/storage
105+
106+
# composer files
107+
composer.dev.json
108+
composer.lock
109+
package-lock.json

0 commit comments

Comments
 (0)