diff options
| author | Nick Van Doorn <nick@nvandoorn.com> | 2025-04-21 15:04:28 -0700 |
|---|---|---|
| committer | Nick Van Doorn <nick@nvandoorn.com> | 2025-04-21 15:04:28 -0700 |
| commit | 9cdf46ae1ceff8dce9dd5b1c8587f2d948a88e2c (patch) | |
| tree | 863cf7e6738a4cd432ac9c0106d48bb2294d0f32 /app | |
Diffstat (limited to 'app')
| -rw-r--r-- | app/Http/Controllers/Controller.php | 8 | ||||
| -rw-r--r-- | app/Http/Controllers/HomeController.php | 13 | ||||
| -rw-r--r-- | app/Models/User.php | 48 | ||||
| -rw-r--r-- | app/Providers/AppServiceProvider.php | 24 |
4 files changed, 93 insertions, 0 deletions
diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..8677cd5 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,8 @@ +<?php + +namespace App\Http\Controllers; + +abstract class Controller +{ + // +} diff --git a/app/Http/Controllers/HomeController.php b/app/Http/Controllers/HomeController.php new file mode 100644 index 0000000..cd8a55b --- /dev/null +++ b/app/Http/Controllers/HomeController.php @@ -0,0 +1,13 @@ +<?php + +namespace App\Http\Controllers; + +use Illuminate\Http\Request; + +class HomeController extends Controller +{ + public function index() + { + return view('home'); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..749c7b7 --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,48 @@ +<?php + +namespace App\Models; + +// use Illuminate\Contracts\Auth\MustVerifyEmail; +use Illuminate\Database\Eloquent\Factories\HasFactory; +use Illuminate\Foundation\Auth\User as Authenticatable; +use Illuminate\Notifications\Notifiable; + +class User extends Authenticatable +{ + /** @use HasFactory<\Database\Factories\UserFactory> */ + use HasFactory, Notifiable; + + /** + * The attributes that are mass assignable. + * + * @var list<string> + */ + protected $fillable = [ + 'name', + 'email', + 'password', + ]; + + /** + * The attributes that should be hidden for serialization. + * + * @var list<string> + */ + protected $hidden = [ + 'password', + 'remember_token', + ]; + + /** + * Get the attributes that should be cast. + * + * @return array<string, string> + */ + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + ]; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..452e6b6 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,24 @@ +<?php + +namespace App\Providers; + +use Illuminate\Support\ServiceProvider; + +class AppServiceProvider extends ServiceProvider +{ + /** + * Register any application services. + */ + public function register(): void + { + // + } + + /** + * Bootstrap any application services. + */ + public function boot(): void + { + // + } +} |
