Skip to content

Commit 1e6b1a7

Browse files
committed
First deploy of Accio
0 parents  commit 1e6b1a7

File tree

2,017 files changed

+1007904
-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.

2,017 files changed

+1007904
-0
lines changed

.babelrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"presets": [
3+
["latest", { "modules": false }]
4+
]
5+
}

.env.example

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
APP_ENV=local
2+
DEBUGBAR_ENABLED=FALSE
3+
APP_KEY=SomeRandomString
4+
APP_DEBUG=false
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://localhost/cms
7+
8+
DB_CONNECTION=mysql
9+
DB_HOST=localhost
10+
DB_PORT=3306
11+
DB_DATABASE=cms
12+
DB_USERNAME=root
13+
DB_PASSWORD=
14+
15+
DB_ARCHIVE=FALSE
16+
DB_CONNECTION_ARCHIVE=mysql
17+
DB_HOST_ARCHIVE=46.99.155.158
18+
DB_PORT_ARCHIVE=3306
19+
DB_DATABASE_ARCHIVE=cms_archive
20+
DB_USERNAME_ARCHIVE=cmsUsr
21+
DB_PASSWORD_ARCHIVE=%276afgaf^28
22+
23+
BROADCAST_DRIVER=log
24+
CACHE_DRIVER=file
25+
SESSION_DRIVER=file
26+
QUEUE_DRIVER=sync
27+
28+
REDIS_HOST=127.0.0.1
29+
REDIS_PASSWORD=null
30+
REDIS_PORT=6379
31+
32+
MAIL_DRIVER=smtp
33+
MAIL_HOST=smtp.sendgrid.net
34+
MAIL_PORT=587
35+
MAIL_USERNAME=manaferra
36+
MAIL_PASSWORD=@Gi3!(ArH4V7
37+
MAIL_ENCRYPTION=tls
38+
39+
PUSHER_APP_ID=
40+
PUSHER_KEY=
41+
PUSHER_SECRET=

.gitattributes

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
* text=auto
2+
*.css linguist-vendored
3+
*.scss linguist-vendored

.htaccess

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
##
2+
## Block access in laravel root files, except index.php
3+
##
4+
<FilesMatch ^((composer|package)\.json|artisan|composer.lock|readme.md|gulpfile.js|phpunit.xml|.env|.gitattributes|.gitignore)$>
5+
order allow,deny
6+
deny from all
7+
</FilesMatch>
8+
9+
<IfModule mod_rewrite.c>
10+
<IfModule mod_negotiation.c>
11+
Options -MultiViews
12+
</IfModule>
13+
14+
RewriteEngine On
15+
16+
##
17+
## You may need to uncomment the following line for some hosting environments,
18+
## if you have installed to a subdirectory, enter the name here also.
19+
##
20+
# RewriteBase /
21+
22+
##
23+
## Black listed folders
24+
## Only /public/* is accessible from outside
25+
##
26+
RewriteRule ^bootstrap/.* index.php [L,NC]
27+
RewriteRule ^app/.* index.php [L,NC]
28+
RewriteRule ^config/.* index.php [L,NC]
29+
RewriteRule ^database/.* index.php [L,NC]
30+
RewriteRule ^resources/.* index.php [L,NC]
31+
RewriteRule ^storage/.* index.php [L,NC]
32+
RewriteRule ^vendor/.* index.php [L,NC]
33+
RewriteRule ^routes/.* index.php [L,NC]
34+
RewriteRule ^tests/.* index.php [L,NC]
35+
36+
# Redirect Trailing Slashes If Not A Folder...
37+
RewriteCond %{REQUEST_FILENAME} !-d
38+
RewriteRule ^(.*)/$ /$1 [L,R=301]
39+
40+
# Handle Front Controller...
41+
RewriteCond %{REQUEST_FILENAME} !-d
42+
RewriteCond %{REQUEST_FILENAME} !-f
43+
RewriteRule ^ index.php [L]
44+
45+
##
46+
## Block all PHP files, except index.php
47+
##
48+
RewriteCond %{REQUEST_FILENAME} -f
49+
RewriteCond %{REQUEST_FILENAME} \.php$
50+
RewriteRule !^index.php index.php [L,NC]
51+
52+
# Handle Authorization Header
53+
RewriteCond %{HTTP:Authorization} .
54+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
55+
</IfModule>
56+
57+

app/Console/Kernel.php

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
3+
namespace App\Console;
4+
5+
use Illuminate\Console\Scheduling\Schedule;
6+
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
7+
8+
class Kernel extends ConsoleKernel
9+
{
10+
/**
11+
* The Artisan commands provided by your application.
12+
*
13+
* @var array
14+
*/
15+
protected $commands = [];
16+
17+
/**
18+
* Define the application's command schedule.
19+
*
20+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
21+
* @return void
22+
*/
23+
protected function schedule(Schedule $schedule){
24+
// $schedule->command('inspire')
25+
// ->hourly();
26+
}
27+
28+
/**
29+
* Register the Closure based commands for the application.
30+
*
31+
* @return void
32+
*/
33+
protected function commands(){
34+
}
35+
}

app/Exceptions/Handler.php

+75
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?php
2+
3+
namespace App\Exceptions;
4+
5+
use Exception;
6+
use Illuminate\Auth\AuthenticationException;
7+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
8+
use Illuminate\Support\Facades\App;
9+
use Illuminate\Support\Facades\Config;
10+
11+
class Handler extends ExceptionHandler
12+
{
13+
/**
14+
* A list of the exception types that should not be reported.
15+
*
16+
* @var array
17+
*/
18+
protected $dontReport = [
19+
\Illuminate\Auth\AuthenticationException::class,
20+
\Illuminate\Auth\Access\AuthorizationException::class,
21+
\Symfony\Component\HttpKernel\Exception\HttpException::class,
22+
\Illuminate\Database\Eloquent\ModelNotFoundException::class,
23+
\Illuminate\Session\TokenMismatchException::class,
24+
\Illuminate\Validation\ValidationException::class,
25+
];
26+
27+
/**
28+
* Report or log an exception.
29+
*
30+
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
31+
*
32+
* @param Exception $exception
33+
* @return mixed|void
34+
* @throws Exception
35+
*/
36+
public function report(Exception $exception)
37+
{
38+
parent::report($exception);
39+
}
40+
41+
/**
42+
* Render an exception into an HTTP response.
43+
*
44+
* @param \Illuminate\Http\Request $request
45+
* @param Exception $exception
46+
* @return \Symfony\Component\HttpFoundation\Response
47+
*/
48+
public function render($request, Exception $exception)
49+
{
50+
return parent::render($request, $exception);
51+
}
52+
53+
/**
54+
* Convert an authentication exception into an unauthenticated response.
55+
*
56+
* @param \Illuminate\Http\Request $request
57+
* @param \Illuminate\Auth\AuthenticationException $exception
58+
* @return \Illuminate\Http\Response
59+
*/
60+
protected function unauthenticated($request, AuthenticationException $exception)
61+
{
62+
if ($request->expectsJson()) {
63+
return response()->json(['error' => 'Unauthenticated.'], 401);
64+
}
65+
66+
if ($request->is(Config::get('project')['adminPrefix'].'*')) {
67+
$loginURL = route("backend.auth.login");
68+
}
69+
else{ //frontend login
70+
$loginURL = route("auth.login.default");
71+
}
72+
73+
return redirect()->guest($loginURL);
74+
}
75+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseAlbumController;
6+
7+
class AlbumController extends BaseAlbumController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend\Auth;
4+
5+
use Manaferra\App\Http\Controllers\Backend\Auth\BaseForgotPasswordController;
6+
7+
class ForgotPasswordController extends BaseForgotPasswordController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend\Auth;
4+
5+
use Manaferra\App\Http\Controllers\Backend\Auth\BaseLoginController;
6+
7+
class LoginController extends BaseLoginController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend\Auth;
4+
5+
use Manaferra\App\Http\Controllers\Backend\Auth\BaseRegisterController;
6+
7+
class RegisterController extends BaseRegisterController {
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend\Auth;
4+
5+
use Manaferra\App\Http\Controllers\Backend\Auth\BaseResetPasswordController;
6+
7+
class ResetPasswordController extends BaseResetPasswordController {
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseCategoryController;
6+
7+
class CategoryController extends BaseCategoryController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseCustomFieldController;
6+
7+
class CustomFieldController extends BaseCustomFieldController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseGeneralController;
6+
7+
class GeneralController extends BaseGeneralController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseLanguageController;
6+
7+
class LanguageController extends BaseLanguageController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseMediaController;
6+
7+
class MediaController extends BaseMediaController {
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
6+
use Manaferra\App\Http\Controllers\Backend\BaseMenuController;
7+
8+
class MenuController extends BaseMenuController {
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BasePermissionController;
6+
7+
class PermissionController extends BasePermissionController{
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BasePluginController;
6+
7+
class PluginController extends BasePluginController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
6+
use Manaferra\App\Http\Controllers\Backend\BasePostController;
7+
8+
class PostController extends BasePostController {
9+
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BasePostTypeController;
6+
7+
class PostTypeController extends BasePostTypeController {
8+
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseSearchController;
6+
7+
class SearchController extends BaseSearchController {
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace App\Http\Controllers\Backend;
4+
5+
use Manaferra\App\Http\Controllers\Backend\BaseSettingsController;
6+
7+
class SettingsController extends BaseSettingsController {
8+
9+
}

0 commit comments

Comments
 (0)