File tree Expand file tree Collapse file tree 16 files changed +310
-1
lines changed Expand file tree Collapse file tree 16 files changed +310
-1
lines changed Original file line number Diff line number Diff line change 2626 },
2727 "require-dev" : {
2828 "orchestra/testbench" : " ^10.4"
29+ },
30+ "autoload-dev" : {
31+ "psr-4" : {
32+ "Workbench\\ App\\ " : " workbench/app/" ,
33+ "Workbench\\ Database\\ Factories\\ " : " workbench/database/factories/" ,
34+ "Workbench\\ Database\\ Seeders\\ " : " workbench/database/seeders/"
35+ }
36+ },
37+ "scripts" : {
38+ "post-autoload-dump" : [
39+ " @clear" ,
40+ " @prepare"
41+ ],
42+ "clear" : " @php vendor/bin/testbench package:purge-skeleton --ansi" ,
43+ "prepare" : " @php vendor/bin/testbench package:discover --ansi" ,
44+ "build" : " @php vendor/bin/testbench workbench:build --ansi" ,
45+ "serve" : [
46+ " Composer\\ Config::disableProcessTimeout" ,
47+ " @build" ,
48+ " @php vendor/bin/testbench serve --ansi"
49+ ]
2950 }
30- }
51+ }
Original file line number Diff line number Diff line change 1+ laravel : ' @testbench'
2+
3+ providers :
4+ # - Workbench\App\Providers\WorkbenchServiceProvider
5+
6+ migrations :
7+ - workbench/database/migrations
8+
9+ seeders :
10+ - Workbench\Database\Seeders\DatabaseSeeder
11+
12+ workbench :
13+ start : ' /'
14+ install : true
15+ health : false
16+ discovers :
17+ web : true
18+ api : true
19+ commands : true
20+ components : false
21+ factories : true
22+ views : false
23+ build :
24+ - asset-publish
25+ - create-sqlite-db
26+ - db-wipe
27+ - migrate-fresh
28+ assets :
29+ - laravel-assets
30+ sync :
31+ - from : storage
32+ to : workbench/storage
33+ reverse : true
Original file line number Diff line number Diff line change 1+ APP_NAME = Laravel
2+ APP_ENV = local
3+ APP_KEY = AckfSECXIvnK5r28GVIWUAxmbBSjTsmF
4+ APP_DEBUG = true
5+ APP_URL = http://localhost
6+
7+ APP_LOCALE = en
8+ APP_FALLBACK_LOCALE = en
9+ APP_FAKER_LOCALE = en_US
10+
11+ APP_MAINTENANCE_DRIVER = file
12+ # APP_MAINTENANCE_STORE=database
13+
14+ # PHP_CLI_SERVER_WORKERS=4
15+
16+ BCRYPT_ROUNDS = 12
17+
18+ LOG_CHANNEL = stack
19+ LOG_STACK = single
20+ LOG_DEPRECATIONS_CHANNEL = null
21+ LOG_LEVEL = debug
22+
23+ DB_CONNECTION = sqlite
24+ # DB_HOST=127.0.0.1
25+ # DB_PORT=3306
26+ # DB_DATABASE=laravel
27+ # DB_USERNAME=root
28+ # DB_PASSWORD=
29+
30+ SESSION_DRIVER = cookie
31+ SESSION_LIFETIME = 120
32+ SESSION_ENCRYPT = false
33+ SESSION_PATH = /
34+ SESSION_DOMAIN = null
35+
36+ BROADCAST_CONNECTION = log
37+ FILESYSTEM_DISK = local
38+ QUEUE_CONNECTION = database
39+
40+ CACHE_STORE = database
41+ # CACHE_PREFIX=
42+
43+ MEMCACHED_HOST = 127.0.0.1
44+
45+ REDIS_CLIENT = phpredis
46+ REDIS_HOST = 127.0.0.1
47+ REDIS_PASSWORD = null
48+ REDIS_PORT = 6379
49+
50+ MAIL_MAILER = log
51+ MAIL_SCHEME = null
52+ MAIL_HOST = 127.0.0.1
53+ MAIL_PORT = 2525
54+ MAIL_USERNAME = null
55+ MAIL_PASSWORD = null
56+ MAIL_FROM_ADDRESS = " hello@example.com"
57+ MAIL_FROM_NAME = " ${ APP_NAME } "
58+
59+ AWS_ACCESS_KEY_ID =
60+ AWS_SECRET_ACCESS_KEY =
61+ AWS_DEFAULT_REGION = us-east-1
62+ AWS_BUCKET =
63+ AWS_USE_PATH_STYLE_ENDPOINT = false
64+
65+ VITE_APP_NAME = " ${ APP_NAME } "
Original file line number Diff line number Diff line change 1+ .env
2+ .env.dusk
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Workbench \App \Models ;
4+
5+ // use Illuminate\Contracts\Auth\MustVerifyEmail;
6+ use Illuminate \Database \Eloquent \Factories \HasFactory ;
7+ use Illuminate \Foundation \Auth \User as Authenticatable ;
8+ use Illuminate \Notifications \Notifiable ;
9+
10+ class User extends Authenticatable
11+ {
12+ /** @use HasFactory<\Workbench\Database\Factories\UserFactory> */
13+ use HasFactory, Notifiable;
14+
15+ /**
16+ * The attributes that are mass assignable.
17+ *
18+ * @var list<string>
19+ */
20+ protected $ fillable = [
21+ 'name ' ,
22+ 'email ' ,
23+ 'password ' ,
24+ ];
25+
26+ /**
27+ * The attributes that should be hidden for serialization.
28+ *
29+ * @var list<string>
30+ */
31+ protected $ hidden = [
32+ 'password ' ,
33+ 'remember_token ' ,
34+ ];
35+
36+ /**
37+ * Get the attributes that should be cast.
38+ *
39+ * @return array<string, string>
40+ */
41+ protected function casts (): array
42+ {
43+ return [
44+ 'email_verified_at ' => 'datetime ' ,
45+ 'password ' => 'hashed ' ,
46+ ];
47+ }
48+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace Workbench \App \Providers ;
4+
5+ use Illuminate \Support \ServiceProvider ;
6+
7+ class WorkbenchServiceProvider extends ServiceProvider
8+ {
9+ /**
10+ * Register services.
11+ */
12+ public function register (): void
13+ {
14+ //
15+ }
16+
17+ /**
18+ * Bootstrap services.
19+ */
20+ public function boot (): void
21+ {
22+ //
23+ }
24+ }
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ use Illuminate \Foundation \Application ;
4+ use Illuminate \Foundation \Configuration \Exceptions ;
5+ use Illuminate \Foundation \Configuration \Middleware ;
6+
7+ use function Orchestra \Testbench \default_skeleton_path ;
8+
9+ return Application::configure (basePath: $ APP_BASE_PATH ?? default_skeleton_path ())
10+ ->withRouting (
11+ web: __DIR__ .'/../routes/web.php ' ,
12+ commands: __DIR__ .'/../routes/console.php ' ,
13+ )
14+ ->withMiddleware (function (Middleware $ middleware ) {
15+ //
16+ })
17+ ->withExceptions (function (Exceptions $ exceptions ) {
18+ //
19+ })->create ();
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ //
5+ ];
You can’t perform that action at this time.
0 commit comments