diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php new file mode 100644 index 0000000..d2caa60 --- /dev/null +++ b/app/Http/Controllers/Auth/LoginController.php @@ -0,0 +1,11 @@ +|string> + */ + public function rules(): array + { + return [ + // + ]; + } +} diff --git a/app/Http/Requests/RegisterRequest.php b/app/Http/Requests/RegisterRequest.php new file mode 100644 index 0000000..ec4c19d --- /dev/null +++ b/app/Http/Requests/RegisterRequest.php @@ -0,0 +1,29 @@ +|string> + */ + public function rules(): array + { + return [ + // + ]; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 452e6b6..447e3e3 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -7,7 +7,7 @@ use Illuminate\Support\ServiceProvider; class AppServiceProvider extends ServiceProvider { /** - * Register any application services. + * RegisterController any application services. */ public function register(): void { diff --git a/artisan b/artisan index c35e31d..161e268 100644 --- a/artisan +++ b/artisan @@ -6,7 +6,7 @@ use Symfony\Component\Console\Input\ArgvInput; define('LARAVEL_START', microtime(true)); -// Register the Composer autoloader... +// RegisterController the Composer autoloader... require __DIR__.'/vendor/autoload.php'; // Bootstrap Laravel and handle the command... diff --git a/bootstrap/app.php b/bootstrap/app.php index 7b162da..1dd700a 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -6,7 +6,10 @@ use Illuminate\Foundation\Configuration\Middleware; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( - web: __DIR__.'/../routes/web.php', + web:[ + __DIR__.'/../routes/web.php', + __DIR__.'/../routes/auth.php', + ], commands: __DIR__.'/../routes/console.php', health: '/up', ) diff --git a/config/auth.php b/config/auth.php index 0ba5d5d..c0c44a5 100644 --- a/config/auth.php +++ b/config/auth.php @@ -62,7 +62,7 @@ return [ 'providers' => [ 'users' => [ 'driver' => 'eloquent', - 'model' => env('AUTH_MODEL', App\Models\User::class), + 'model' => App\Models\User::class, ], // 'users' => [ diff --git a/public/assets/js/magnific-popup.js b/public/assets/js/magnific-popup.js index c0b47f3..ac64994 100644 --- a/public/assets/js/magnific-popup.js +++ b/public/assets/js/magnific-popup.js @@ -3,7 +3,7 @@ * Copyright (c) 2016 Dmitry Semenov; */ ;(function (factory) { if (typeof define === 'function' && define.amd) { - // AMD. Register as an anonymous module. + // AMD. RegisterController as an anonymous module. define(['jquery'], factory); } else if (typeof exports === 'object') { // Node/CommonJS diff --git a/public/index.php b/public/index.php index ee8f07e..31896c8 100644 --- a/public/index.php +++ b/public/index.php @@ -10,7 +10,7 @@ if (file_exists($maintenance = __DIR__.'/../storage/framework/maintenance.php')) require $maintenance; } -// Register the Composer autoloader... +// RegisterController the Composer autoloader... require __DIR__.'/../vendor/autoload.php'; // Bootstrap Laravel and handle the request... diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..a98d5d1 --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,85 @@ +@extends('layouts.app') +@section('content') +
وارد حساب Bookify خود شوید
+حساب کاربری ندارید؟ + ثبت نام. +
+با ورود به سیستم، شرایط استفاده
+
و
+ سیاست حفظ حریم خصوصی ما را می پذیرید
+ .
+
حساب Bookify جدید ایجاد کنید
+از قبل حساب کاربری دارید؟ + ورود. +
+با ثبت نام، شرایط استفاده
+
و
+ سیاست حفظ حریم خصوصی ما را می پذیرید
+ .
+