Skip to content

Commit 4cc89f7

Browse files
committed
Laravel 9
1 parent c78167a commit 4cc89f7

File tree

84 files changed

+11066
-33
lines changed

Some content is hidden

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

84 files changed

+11066
-33
lines changed

Diff for: .editorconfig

+5-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,16 @@ root = true
33
[*]
44
charset = utf-8
55
end_of_line = lf
6-
insert_final_newline = true
7-
indent_style = space
86
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
99
trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
1313

1414
[*.{yml,yaml}]
1515
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

Diff for: .env.example

+15-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,25 @@
1-
APP_NAME="Laravel CRM"
1+
APP_NAME=Laravel
22
APP_ENV=local
33
APP_KEY=
44
APP_DEBUG=true
55
APP_URL=http://localhost
66

77
LOG_CHANNEL=stack
8+
LOG_DEPRECATIONS_CHANNEL=null
89
LOG_LEVEL=debug
910

1011
DB_CONNECTION=mysql
1112
DB_HOST=127.0.0.1
1213
DB_PORT=3306
13-
DB_DATABASE=laravel_crm
14+
DB_DATABASE=laravel
1415
DB_USERNAME=root
1516
DB_PASSWORD=
1617

1718
BROADCAST_DRIVER=log
1819
CACHE_DRIVER=file
20+
FILESYSTEM_DISK=local
1921
QUEUE_CONNECTION=sync
20-
SESSION_DRIVER=database
22+
SESSION_DRIVER=file
2123
SESSION_LIFETIME=120
2224

2325
MEMCACHED_HOST=127.0.0.1
@@ -32,18 +34,25 @@ MAIL_PORT=1025
3234
MAIL_USERNAME=null
3335
MAIL_PASSWORD=null
3436
MAIL_ENCRYPTION=null
35-
MAIL_FROM_ADDRESS=null
37+
MAIL_FROM_ADDRESS="[email protected]"
3638
MAIL_FROM_NAME="${APP_NAME}"
3739

3840
AWS_ACCESS_KEY_ID=
3941
AWS_SECRET_ACCESS_KEY=
4042
AWS_DEFAULT_REGION=us-east-1
4143
AWS_BUCKET=
44+
AWS_USE_PATH_STYLE_ENDPOINT=false
4245

4346
PUSHER_APP_ID=
4447
PUSHER_APP_KEY=
4548
PUSHER_APP_SECRET=
49+
PUSHER_HOST=
50+
PUSHER_PORT=443
51+
PUSHER_SCHEME=https
4652
PUSHER_APP_CLUSTER=mt1
4753

48-
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
49-
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
54+
VITE_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
55+
VITE_PUSHER_HOST="${PUSHER_HOST}"
56+
VITE_PUSHER_PORT="${PUSHER_PORT}"
57+
VITE_PUSHER_SCHEME="${PUSHER_SCHEME}"
58+
VITE_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"

Diff for: .gitattributes

+9-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
* text=auto
2-
*.css linguist-vendored
3-
*.scss linguist-vendored
4-
*.js linguist-vendored
5-
CHANGELOG.md export-ignore
62

7-
/.github export-ignore
8-
/tests export-ignore
9-
/.editorconfig export-ignore
10-
/.gitattributes export-ignore
11-
/.gitignore export-ignore
12-
/.php_cs.dist export-ignore
13-
/.styleci.yml export-ignore
14-
/package.json export-ignore
15-
/phpcs.xml.dist export-ignore
16-
/phpstan.neon export-ignore
17-
/phpunit.xml.dist export-ignore
18-
/webpack.mix.js export-ignore
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

Diff for: .gitignore

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/node_modules
2+
/public/build
23
/public/hot
34
/public/storage
45
/storage/*.key
56
/vendor
67
.env
78
.env.backup
9+
.env.production
810
.phpunit.result.cache
9-
docker-compose.override.yml
1011
Homestead.json
1112
Homestead.yaml
13+
auth.json
1214
npm-debug.log
1315
yarn-error.log
16+
/.fleet
1417
/.idea
15-
.php_cs.cache
16-
.phpunit.result.cache
17-
/build
18-
coverage
18+
/.vscode

Diff for: LICENSE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2021 Venture Drake
3+
Copyright (c) 2023 VENTURE DRAKE PTY LIMITED
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

Diff for: README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,4 @@
33
[![Latest Version on Packagist](https://img.shields.io/packagist/v/venturedrake/laravel-crm-starter.svg?style=flat-square)](https://packagist.org/packages/venturedrake/laravel-crm-starter)
44
[![Total Downloads](https://img.shields.io/packagist/dt/venturedrake/laravel-crm-starter.svg?style=flat-square)](https://packagist.org/packages/venturedrake/laravel-crm-starter)
55

6-
A complete starter project for the [laravel crm package](https://github.com/venturedrake/laravel-crm).
7-
8-
> ⚠️ Warning: This is a pre-release version in development that is not yet ready for use.
6+
A complete starter project for the [laravel crm package](https://github.com/venturedrake/laravel-crm).

Diff for: app/Console/Kernel.php

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
* Define the application's command schedule.
12+
*
13+
* @param \Illuminate\Console\Scheduling\Schedule $schedule
14+
* @return void
15+
*/
16+
protected function schedule(Schedule $schedule)
17+
{
18+
// $schedule->command('inspire')->hourly();
19+
}
20+
21+
/**
22+
* Register the commands for the application.
23+
*
24+
* @return void
25+
*/
26+
protected function commands()
27+
{
28+
$this->load(__DIR__.'/Commands');
29+
30+
require base_path('routes/console.php');
31+
}
32+
}

Diff for: app/Exceptions/Handler.php

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
3+
namespace App\Exceptions;
4+
5+
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
6+
use Throwable;
7+
8+
class Handler extends ExceptionHandler
9+
{
10+
/**
11+
* A list of exception types with their corresponding custom log levels.
12+
*
13+
* @var array<class-string<\Throwable>, \Psr\Log\LogLevel::*>
14+
*/
15+
protected $levels = [
16+
//
17+
];
18+
19+
/**
20+
* A list of the exception types that are not reported.
21+
*
22+
* @var array<int, class-string<\Throwable>>
23+
*/
24+
protected $dontReport = [
25+
//
26+
];
27+
28+
/**
29+
* A list of the inputs that are never flashed to the session on validation exceptions.
30+
*
31+
* @var array<int, string>
32+
*/
33+
protected $dontFlash = [
34+
'current_password',
35+
'password',
36+
'password_confirmation',
37+
];
38+
39+
/**
40+
* Register the exception handling callbacks for the application.
41+
*
42+
* @return void
43+
*/
44+
public function register()
45+
{
46+
$this->reportable(function (Throwable $e) {
47+
//
48+
});
49+
}
50+
}

Diff for: app/Http/Controllers/Controller.php

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
6+
use Illuminate\Foundation\Bus\DispatchesJobs;
7+
use Illuminate\Foundation\Validation\ValidatesRequests;
8+
use Illuminate\Routing\Controller as BaseController;
9+
10+
class Controller extends BaseController
11+
{
12+
use AuthorizesRequests, DispatchesJobs, ValidatesRequests;
13+
}

Diff for: app/Http/Kernel.php

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
3+
namespace App\Http;
4+
5+
use Illuminate\Foundation\Http\Kernel as HttpKernel;
6+
7+
class Kernel extends HttpKernel
8+
{
9+
/**
10+
* The application's global HTTP middleware stack.
11+
*
12+
* These middleware are run during every request to your application.
13+
*
14+
* @var array<int, class-string|string>
15+
*/
16+
protected $middleware = [
17+
// \App\Http\Middleware\TrustHosts::class,
18+
\App\Http\Middleware\TrustProxies::class,
19+
\Illuminate\Http\Middleware\HandleCors::class,
20+
\App\Http\Middleware\PreventRequestsDuringMaintenance::class,
21+
\Illuminate\Foundation\Http\Middleware\ValidatePostSize::class,
22+
\App\Http\Middleware\TrimStrings::class,
23+
\Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class,
24+
];
25+
26+
/**
27+
* The application's route middleware groups.
28+
*
29+
* @var array<string, array<int, class-string|string>>
30+
*/
31+
protected $middlewareGroups = [
32+
'web' => [
33+
\App\Http\Middleware\EncryptCookies::class,
34+
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
35+
\Illuminate\Session\Middleware\StartSession::class,
36+
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
37+
\App\Http\Middleware\VerifyCsrfToken::class,
38+
\Illuminate\Routing\Middleware\SubstituteBindings::class,
39+
],
40+
41+
'api' => [
42+
// \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class,
43+
'throttle:api',
44+
\Illuminate\Routing\Middleware\SubstituteBindings::class,
45+
],
46+
];
47+
48+
/**
49+
* The application's route middleware.
50+
*
51+
* These middleware may be assigned to groups or used individually.
52+
*
53+
* @var array<string, class-string|string>
54+
*/
55+
protected $routeMiddleware = [
56+
'auth' => \App\Http\Middleware\Authenticate::class,
57+
'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class,
58+
'auth.session' => \Illuminate\Session\Middleware\AuthenticateSession::class,
59+
'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class,
60+
'can' => \Illuminate\Auth\Middleware\Authorize::class,
61+
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
62+
'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class,
63+
'signed' => \App\Http\Middleware\ValidateSignature::class,
64+
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
65+
'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class,
66+
];
67+
}

Diff for: app/Http/Middleware/Authenticate.php

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace App\Http\Middleware;
4+
5+
use Illuminate\Auth\Middleware\Authenticate as Middleware;
6+
7+
class Authenticate extends Middleware
8+
{
9+
/**
10+
* Get the path the user should be redirected to when they are not authenticated.
11+
*
12+
* @param \Illuminate\Http\Request $request
13+
* @return string|null
14+
*/
15+
protected function redirectTo($request)
16+
{
17+
if (! $request->expectsJson()) {
18+
return route('login');
19+
}
20+
}
21+
}

Diff for: app/Http/Middleware/EncryptCookies.php

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace App\Http\Middleware;
4+
5+
use Illuminate\Cookie\Middleware\EncryptCookies as Middleware;
6+
7+
class EncryptCookies extends Middleware
8+
{
9+
/**
10+
* The names of the cookies that should not be encrypted.
11+
*
12+
* @var array<int, string>
13+
*/
14+
protected $except = [
15+
//
16+
];
17+
}
+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace App\Http\Middleware;
4+
5+
use Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance as Middleware;
6+
7+
class PreventRequestsDuringMaintenance extends Middleware
8+
{
9+
/**
10+
* The URIs that should be reachable while maintenance mode is enabled.
11+
*
12+
* @var array<int, string>
13+
*/
14+
protected $except = [
15+
//
16+
];
17+
}

0 commit comments

Comments
 (0)