started l7
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group([
|
||||
'middleware' => 'admin',
|
||||
'namespace' => 'Modules\$STUDLY_NAME$\Http\Controllers'
|
||||
|
@ -1,5 +1,7 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::group([
|
||||
'prefix' => 'portal',
|
||||
'middleware' => 'portal',
|
||||
|
@ -2,12 +2,12 @@
|
||||
|
||||
namespace App\Exceptions;
|
||||
|
||||
use Exception;
|
||||
use Illuminate\Auth\AuthenticationException;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
|
||||
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
|
||||
use Symfony\Component\Debug\Exception\FatalThrowableError;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Throwable;
|
||||
|
||||
class Handler extends ExceptionHandler
|
||||
{
|
||||
@ -35,10 +35,10 @@ class Handler extends ExceptionHandler
|
||||
*
|
||||
* This is a great spot to send exceptions to Sentry, Bugsnag, etc.
|
||||
*
|
||||
* @param \Exception $exception
|
||||
* @param \Throwable $exception
|
||||
* @return void
|
||||
*/
|
||||
public function report(Exception $exception)
|
||||
public function report(Throwable $exception)
|
||||
{
|
||||
parent::report($exception);
|
||||
}
|
||||
@ -47,10 +47,10 @@ class Handler extends ExceptionHandler
|
||||
* Render an exception into an HTTP response.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Exception $exception
|
||||
* @param \Throwable $exception
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function render($request, Exception $exception)
|
||||
public function render($request, Throwable $exception)
|
||||
{
|
||||
if (env('APP_DEBUG') === false) {
|
||||
return $this->handleExceptions($request, $exception);
|
||||
|
@ -36,18 +36,18 @@ class Overrider
|
||||
|
||||
// Email
|
||||
$email_protocol = setting('email.protocol', 'mail');
|
||||
config(['mail.driver' => $email_protocol]);
|
||||
config(['mail.default' => $email_protocol]);
|
||||
config(['mail.from.name' => setting('company.name')]);
|
||||
config(['mail.from.address' => setting('company.email')]);
|
||||
|
||||
if ($email_protocol == 'sendmail') {
|
||||
config(['mail.sendmail' => setting('email.sendmail_path')]);
|
||||
config(['mail.sendmail.path' => setting('email.sendmail_path')]);
|
||||
} elseif ($email_protocol == 'smtp') {
|
||||
config(['mail.host' => setting('email.smtp_host')]);
|
||||
config(['mail.port' => setting('email.smtp_port')]);
|
||||
config(['mail.username' => setting('email.smtp_username')]);
|
||||
config(['mail.password' => setting('email.smtp_password')]);
|
||||
config(['mail.encryption' => setting('email.smtp_encryption')]);
|
||||
config(['mail.smtp.host' => setting('email.smtp_host')]);
|
||||
config(['mail.smtp.port' => setting('email.smtp_port')]);
|
||||
config(['mail.smtp.username' => setting('email.smtp_username')]);
|
||||
config(['mail.smtp.password' => setting('email.smtp_password')]);
|
||||
config(['mail.smtp.encryption' => setting('email.smtp_encryption')]);
|
||||
}
|
||||
|
||||
// Locale
|
||||
|
Reference in New Issue
Block a user