Skip to content

Commit 29fecd7

Browse files
committed
Initial commit
0 parents  commit 29fecd7

Some content is hidden

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

60 files changed

+15184
-0
lines changed

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2
16+
17+
[docker-compose.yml]
18+
indent_size = 4

.env.example

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
APP_NAME=Project
2+
APP_ENV=local
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_TIMEZONE=UTC
6+
APP_URL=http://localhost
7+
8+
APP_SERVICE=hula
9+
10+
APP_LOCALE=en_GB
11+
APP_FALLBACK_LOCALE=en
12+
APP_FAKER_LOCALE=en_GB
13+
14+
APP_MAINTENANCE_DRIVER=file
15+
# APP_MAINTENANCE_STORE=database
16+
17+
PHP_CLI_SERVER_WORKERS=4
18+
19+
BCRYPT_ROUNDS=12
20+
21+
LOG_CHANNEL=stack
22+
LOG_STACK=single
23+
LOG_DEPRECATIONS_CHANNEL=null
24+
LOG_LEVEL=debug
25+
26+
DB_CONNECTION=sqlite
27+
# DB_HOST=127.0.0.1
28+
# DB_PORT=3306
29+
# DB_DATABASE=laravel
30+
# DB_USERNAME=root
31+
# DB_PASSWORD=
32+
33+
SESSION_DRIVER=database
34+
SESSION_LIFETIME=120
35+
SESSION_ENCRYPT=false
36+
SESSION_PATH=/
37+
SESSION_DOMAIN=null
38+
39+
BROADCAST_CONNECTION=log
40+
FILESYSTEM_DISK=local
41+
QUEUE_CONNECTION=database
42+
43+
CACHE_STORE=database
44+
CACHE_PREFIX=
45+
46+
MEMCACHED_HOST=127.0.0.1
47+
48+
REDIS_CLIENT=phpredis
49+
REDIS_HOST=127.0.0.1
50+
REDIS_PASSWORD=null
51+
REDIS_PORT=6379
52+
53+
MAIL_MAILER=log
54+
MAIL_SCHEME=null
55+
MAIL_HOST=127.0.0.1
56+
MAIL_PORT=2525
57+
MAIL_USERNAME=null
58+
MAIL_PASSWORD=null
59+
MAIL_FROM_ADDRESS="[email protected]"
60+
MAIL_FROM_NAME="${APP_NAME}"
61+
62+
AWS_ACCESS_KEY_ID=
63+
AWS_SECRET_ACCESS_KEY=
64+
AWS_DEFAULT_REGION=us-east-1
65+
AWS_BUCKET=
66+
AWS_USE_PATH_STYLE_ENDPOINT=false
67+
68+
VITE_APP_NAME="${APP_NAME}"

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
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

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/.phpunit.cache
2+
/node_modules
3+
/public/build
4+
/public/hot
5+
/public/storage
6+
/storage/*.key
7+
/storage/pail
8+
/vendor
9+
.env
10+
.env.backup
11+
.env.production
12+
.phpactor.json
13+
.phpunit.result.cache
14+
Homestead.json
15+
Homestead.yaml
16+
npm-debug.log
17+
yarn-error.log
18+
/auth.json
19+
/.fleet
20+
/.idea
21+
/.nova
22+
/.vscode
23+
/.zed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# HULA (Laravel) Template
2+
3+
## HTMX, UIkit, <del>Laminas</del> <ins>Laravel</ins>, Alpine
4+
5+
A Laravel version of my starter template for the <abbr title="HTMX, UIkit, Laminas, Alpine">HULA</abbr> stack

app/Http/Controllers/Controller.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
abstract class Controller
6+
{
7+
//
8+
}

app/Models/User.php

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<?php
2+
3+
namespace 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<\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+
}

app/Providers/AppServiceProvider.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
namespace App\Providers;
4+
5+
use Illuminate\Support\ServiceProvider;
6+
7+
class AppServiceProvider extends ServiceProvider
8+
{
9+
/**
10+
* Register any application services.
11+
*/
12+
public function register(): void
13+
{
14+
//
15+
}
16+
17+
/**
18+
* Bootstrap any application services.
19+
*/
20+
public function boot(): void
21+
{
22+
//
23+
}
24+
}

artisan

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env php
2+
<?php
3+
4+
use Symfony\Component\Console\Input\ArgvInput;
5+
6+
define('LARAVEL_START', microtime(true));
7+
8+
// Register the Composer autoloader...
9+
require __DIR__.'/vendor/autoload.php';
10+
11+
// Bootstrap Laravel and handle the command...
12+
$status = (require_once __DIR__.'/bootstrap/app.php')
13+
->handleCommand(new ArgvInput);
14+
15+
exit($status);

bootstrap/app.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
use Illuminate\Foundation\Application;
4+
use Illuminate\Foundation\Configuration\Exceptions;
5+
use Illuminate\Foundation\Configuration\Middleware;
6+
7+
return Application::configure(basePath: dirname(__DIR__))
8+
->withRouting(
9+
web: __DIR__.'/../routes/web.php',
10+
commands: __DIR__.'/../routes/console.php',
11+
health: '/up',
12+
)
13+
->withMiddleware(function (Middleware $middleware) {
14+
//
15+
})
16+
->withExceptions(function (Exceptions $exceptions) {
17+
//
18+
})->create();

bootstrap/cache/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!.gitignore

bootstrap/providers.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?php
2+
3+
return [
4+
App\Providers\AppServiceProvider::class,
5+
];

composer.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"$schema": "https://getcomposer.org/schema.json",
3+
"name": "laravel/laravel",
4+
"type": "project",
5+
"description": "The skeleton application for the Laravel framework.",
6+
"keywords": [
7+
"laravel",
8+
"framework"
9+
],
10+
"license": "MIT",
11+
"require": {
12+
"php": "^8.2",
13+
"laravel/framework": "^11.31",
14+
"laravel/tinker": "^2.9"
15+
},
16+
"require-dev": {
17+
"fakerphp/faker": "^1.23",
18+
"laravel/pail": "^1.1",
19+
"laravel/pint": "^1.13",
20+
"laravel/sail": "^1.26",
21+
"mockery/mockery": "^1.6",
22+
"nunomaduro/collision": "^8.1",
23+
"phpunit/phpunit": "^11.0.1"
24+
},
25+
"autoload": {
26+
"psr-4": {
27+
"App\\": "app/",
28+
"Database\\Factories\\": "database/factories/",
29+
"Database\\Seeders\\": "database/seeders/"
30+
}
31+
},
32+
"autoload-dev": {
33+
"psr-4": {
34+
"Tests\\": "tests/"
35+
}
36+
},
37+
"scripts": {
38+
"post-autoload-dump": [
39+
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
40+
"@php artisan package:discover --ansi"
41+
],
42+
"post-update-cmd": [
43+
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
44+
],
45+
"post-root-package-install": [
46+
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
47+
],
48+
"post-create-project-cmd": [
49+
"@php artisan key:generate --ansi",
50+
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
51+
"@php artisan migrate --graceful --ansi"
52+
],
53+
"dev": [
54+
"Composer\\Config::disableProcessTimeout",
55+
"npx concurrently -c \"#93c5fd,#c4b5fd,#fb7185,#fdba74\" \"php artisan serve\" \"php artisan queue:listen --tries=1\" \"php artisan pail --timeout=0\" \"npm run dev\" --names=server,queue,logs,vite"
56+
]
57+
},
58+
"extra": {
59+
"laravel": {
60+
"dont-discover": []
61+
}
62+
},
63+
"config": {
64+
"optimize-autoloader": true,
65+
"preferred-install": "dist",
66+
"sort-packages": true,
67+
"allow-plugins": {
68+
"pestphp/pest-plugin": true,
69+
"php-http/discovery": true
70+
}
71+
},
72+
"minimum-stability": "stable",
73+
"prefer-stable": true
74+
}

0 commit comments

Comments
 (0)