How artemlikekek-cloud/1laravel works
This Laravel news portal lets visitors browse published stories and categories, while registered journalists publish and manage their own articles and administrators manage users and roles. The main flow runs from web routes through controllers to Eloquent models and Blade views; authentication and role middleware gate protected areas. The README documents these capabilities, but the route definitions and middleware implementations were not excerpted, so their detailed dispatch and enforcement links are limited to documented relationships.
Main entry points: TextController.php Article workflow · web.php Web routes · User.php User model · Text.php Article model
Components 20
Routing and access
- Web routes
routes/web.php - Role middleware
app/Http/Middleware
News content
- Article workflow
app/Http/Controllers/TextController.php - Article model
app/Models/Text.php - Category model
app/Models/Category.php
Accounts and roles
- Authentication
app/Http/Controllers/AuthController.php - User administration
app/Http/Controllers/AdminController.php - User model
app/Models/User.php - Role model
app/Models/Role.php
Blade interface
- News listing
resources/views/index.blade.php - Category page
resources/views/category.blade.php - Article detail
resources/views/article/show.blade.php - Journalist workspace
resources/views/journalist.blade.php - Article editor
resources/views/article/edit.blade.php - Login form
resources/views/auth/login.blade.php - Registration form
resources/views/auth/register.blade.php - Admin panel
resources/views/admin.blade.php
Other components
- Visitor
- Journalist
- Administrator
Connections 25
- Visitor → Web routes: opens site
- Journalist → Web routes: manages stories
- Administrator → Web routes: manages users
- Web routes → Article workflow: routes requests
routes/web.php - Web routes → Authentication: routes requests
routes/web.php - Web routes → User administration: routes requests
routes/web.php - Web routes → Role middleware: protects sections
- Authentication → User model: creates and checks
app/Http/Controllers/AuthController.php - Authentication → Login form: renders
app/Http/Controllers/AuthController.php - Authentication → Registration form: renders
app/Http/Controllers/AuthController.php - User administration → User model: updates and deletes
app/Http/Controllers/AdminController.php - User administration → Admin panel: renders
app/Http/Controllers/AdminController.php - User model → Role model: belongs to
app/Models/User.php - User model → Article model: has many
app/Models/User.php - Role model → User model: has many
app/Models/Role.php - Article workflow → Article model: queries and saves
app/Http/Controllers/TextController.php - Article workflow → Category model: queries categories
app/Http/Controllers/TextController.php - Article workflow → News listing: renders
app/Http/Controllers/TextController.php - Article workflow → Category page: renders
app/Http/Controllers/TextController.php - Article workflow → Article detail: renders
app/Http/Controllers/TextController.php - Article workflow → Journalist workspace: renders
app/Http/Controllers/TextController.php - Article workflow → Article editor: renders
app/Http/Controllers/TextController.php - Article model → User model: belongs to author
app/Models/Text.php - Article model → Category model: belongs to
app/Models/Text.php - Category model → Article model: has many
app/Models/Category.php