Fix login text and README

This commit is contained in:
fatihalp 2026-03-08 00:30:51 +03:00
parent 7cd372e183
commit e79fd20801
6 changed files with 76 additions and 45 deletions

View File

@ -3,41 +3,13 @@
namespace Modules\Demo\Database\Seeders; namespace Modules\Demo\Database\Seeders;
use Illuminate\Database\Seeder; use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;
use Modules\User\App\Models\User;
use Spatie\Permission\Models\Role;
class DemoContentSeeder extends Seeder class DemoContentSeeder extends Seeder
{ {
public function run(): void public function run(): void
{ {
$admin = User::query()->updateOrCreate(
['email' => 'a@a.com'],
[
'name' => 'Admin',
'password' => Hash::make('236330'),
'status' => 'active',
],
);
$partner = User::query()->updateOrCreate(
['email' => 'b@b.com'],
[
'name' => 'Partner',
'password' => Hash::make('36330'),
'status' => 'active',
],
);
if (class_exists(Role::class)) {
$adminRole = Role::firstOrCreate(['name' => 'admin', 'guard_name' => 'web']);
$partnerRole = Role::firstOrCreate(['name' => 'partner', 'guard_name' => 'web']);
$admin->syncRoles([$adminRole->name]);
$partner->syncRoles([$partnerRole->name]);
}
$this->call([ $this->call([
\Modules\User\Database\Seeders\AuthUserSeeder::class,
\Modules\Listing\Database\Seeders\ListingSeeder::class, \Modules\Listing\Database\Seeders\ListingSeeder::class,
\Modules\Listing\Database\Seeders\ListingPanelDemoSeeder::class, \Modules\Listing\Database\Seeders\ListingPanelDemoSeeder::class,
\Modules\Favorite\Database\Seeders\FavoriteDemoSeeder::class, \Modules\Favorite\Database\Seeders\FavoriteDemoSeeder::class,

View File

@ -0,0 +1,43 @@
<?php
namespace Modules\User\Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Schema;
use Modules\User\App\Models\User;
use Spatie\Permission\Models\Role;
class AuthUserSeeder extends Seeder
{
public function run(): void
{
$admin = User::query()->updateOrCreate(
['email' => 'a@a.com'],
[
'name' => 'Admin',
'password' => '236330',
'status' => 'active',
],
);
User::query()->updateOrCreate(
['email' => 'b@b.com'],
[
'name' => 'Member',
'password' => '36330',
'status' => 'active',
],
);
if (! class_exists(Role::class) || ! Schema::hasTable((new Role())->getTable())) {
return;
}
$adminRole = Role::query()->firstOrCreate([
'name' => 'admin',
'guard_name' => 'web',
]);
$admin->syncRoles([$adminRole->name]);
}
}

View File

@ -3,11 +3,6 @@
@section('title', 'Sign in') @section('title', 'Sign in')
@section('content') @section('content')
<div class="user-auth-copy">
<p class="user-auth-kicker">Account</p>
<h1 class="user-auth-title">Sign in</h1>
</div>
@if (session('status')) @if (session('status'))
<div class="user-auth-status is-success">{{ session('status') }}</div> <div class="user-auth-status is-success">{{ session('status') }}</div>
@endif @endif
@ -74,7 +69,7 @@
</div> </div>
<button type="submit" class="user-auth-primary"> <button type="submit" class="user-auth-primary">
Sign in with email Sign in
</button> </button>
</form> </form>

View File

@ -6,7 +6,6 @@
<div class="user-auth-copy"> <div class="user-auth-copy">
<p class="user-auth-kicker">Account</p> <p class="user-auth-kicker">Account</p>
<h1 class="user-auth-title">Create account</h1> <h1 class="user-auth-title">Create account</h1>
<p class="user-auth-subtitle">Open your account once and manage listings, messages, and saved items from one place.</p>
</div> </div>
<form method="POST" action="{{ route('register') }}" class="user-auth-form"> <form method="POST" action="{{ route('register') }}" class="user-auth-form">

View File

@ -9,7 +9,7 @@ A modern classified ads platform built with Laravel 12, FilamentPHP v5, and Lara
- 📍 **Locations** — Country and city management - 📍 **Locations** — Country and city management
- 👤 **User Profiles** — Manage your listings and account - 👤 **User Profiles** — Manage your listings and account
- 🔐 **Admin Panel** — Full control via FilamentPHP v5 at `/admin` - 🔐 **Admin Panel** — Full control via FilamentPHP v5 at `/admin`
- 🤝 **Partner Panel** — Users manage their own listings at `/partner/{id}` (tenant isolation) - 🧭 **Frontend Panel** — Authenticated users manage listings, profile, videos, favorites, and inbox at `/panel`
- 🧪 **Demo Mode** — Per-visitor PostgreSQL schema provisioning with seeded data and automatic cleanup - 🧪 **Demo Mode** — Per-visitor PostgreSQL schema provisioning with seeded data and automatic cleanup
- 🌍 **10 Languages** — English, Turkish, Arabic, German, French, Spanish, Portuguese, Russian, Chinese, Japanese - 🌍 **10 Languages** — English, Turkish, Arabic, German, French, Spanish, Portuguese, Russian, Chinese, Japanese
- 🐳 **Docker Ready** — One-command production and development setup - 🐳 **Docker Ready** — One-command production and development setup
@ -51,17 +51,17 @@ docker compose up -d
# The application will be available at http://localhost:8000 # The application will be available at http://localhost:8000
``` ```
### Demo Credentials (`DEMO=1` only) ### Default Accounts
| Role | Email | Password | | Role | Email | Password |
|------|-------|----------| |------|-------|----------|
| Admin | a@a.com | 236330 | | Admin | a@a.com | 236330 |
| Partner | b@b.com | 36330 | | Member | b@b.com | 36330 |
Demo preparation auto-logs the visitor into the schema-local admin account, so manual login is usually not required. These accounts are seeded by `Modules\User\Database\Seeders\AuthUserSeeder`. In demo mode, demo preparation still auto-logs the visitor into the schema-local admin account.
**Admin Panel:** http://localhost:8000/admin **Admin Panel:** http://localhost:8000/admin
**Partner Panel:** http://localhost:8000/partner **Frontend Panel:** http://localhost:8000/panel
--- ---
@ -184,9 +184,10 @@ Modules/
│ ├── database/migrations/ │ ├── database/migrations/
│ └── database/seeders/ │ └── database/seeders/
└── Profile/ # User profile pages └── User/ # Users, auth, profile, and account flows
├── Models/Profile.php ├── App/Http/Controllers/
├── Http/Controllers/ ├── App/Models/
├── Database/Seeders/
└── database/migrations/ └── database/migrations/
``` ```
@ -202,10 +203,30 @@ Modules/
| Role | Access | | Role | Access |
|------|--------| |------|--------|
| `admin` | Full admin panel access | | `admin` | Full admin panel access |
| `partner` | Partner panel only (manages own listings) |
--- ---
## Code Contributors
<p align="center">
<a href="https://openclassify.com">
<img src="https://raw.githubusercontent.com/openclassify/openclassify/master/public/openclassify-logo.png" width="220" alt="OpenClassify Logo">
</a>
</p>
OpenClassify is a modular open source classified platform built with Laravel.
- Website: [openclassify.com](https://openclassify.com)
- Package: [openclassify/openclassify](https://packagist.org/packages/openclassify/openclassify)
This project is maintained and improved by its contributors.
<p align="center">
<a href="https://github.com/openclassify/openclassify/graphs/contributors">
<img src="https://contrib.rocks/image?repo=openclassify/openclassify" alt="OpenClassify Contributors">
</a>
</p>
## Creating a New Module ## Creating a New Module
```bash ```bash

View File

@ -9,6 +9,7 @@ class DatabaseSeeder extends Seeder
public function run(): void public function run(): void
{ {
$this->call([ $this->call([
\Modules\User\Database\Seeders\AuthUserSeeder::class,
HomeSliderSettingsSeeder::class, HomeSliderSettingsSeeder::class,
\Modules\Location\Database\Seeders\LocationSeeder::class, \Modules\Location\Database\Seeders\LocationSeeder::class,
\Modules\Category\Database\Seeders\CategorySeeder::class, \Modules\Category\Database\Seeders\CategorySeeder::class,