├── public ├── favicon.ico ├── robots.txt ├── images │ ├── img.png │ └── default.png ├── .htaccess └── index.php ├── database ├── .gitignore ├── factories │ ├── IndustryFactory.php │ └── UserFactory.php ├── seeders │ ├── DatabaseSeeder.php │ └── IndustrySeeder.php └── migrations │ ├── 2022_02_10_171899_create_jobs_table.php │ ├── 2022_02_10_171823_create_industries_table.php │ ├── 2014_10_12_000000_create_users_table.php │ ├── 2022_02_10_171907_create_companies_table.php │ └── 2022_02_10_174219_create_comments_table.php ├── bootstrap ├── cache │ └── .gitignore └── app.php ├── storage ├── logs │ └── .gitignore ├── app │ ├── public │ │ └── .gitignore │ └── .gitignore └── framework │ ├── testing │ └── .gitignore │ ├── views │ └── .gitignore │ ├── cache │ ├── data │ │ └── .gitignore │ └── .gitignore │ ├── sessions │ └── .gitignore │ └── .gitignore ├── resources ├── views │ ├── layouts │ │ ├── logo │ │ │ └── simple.blade.php │ │ ├── assets │ │ │ ├── js.blade.php │ │ │ └── css.blade.php │ │ ├── plugins │ │ │ ├── inputMaskScript.blade.php │ │ │ └── validateScript.blade.php │ │ ├── comments │ │ │ ├── alert │ │ │ │ ├── store.blade.php │ │ │ │ ├── update.blade.php │ │ │ │ └── destroy.blade.php │ │ │ ├── rejectReasonModal.blade.php │ │ │ ├── deleteCommentsModal.blade.php │ │ │ ├── empty.blade.php │ │ │ └── commentsTable.blade.php │ │ ├── master │ │ │ └── metaTag.blade.php │ │ ├── companies │ │ │ ├── alert │ │ │ │ ├── destroy.blade.php │ │ │ │ └── store.blade.php │ │ │ ├── rejectReasonModal.blade.php │ │ │ ├── item │ │ │ │ └── card.blade.php │ │ │ ├── Indicators.blade.php │ │ │ ├── deleteCompaniesModal.blade.php │ │ │ ├── empty.blade.php │ │ │ ├── show │ │ │ │ └── sections │ │ │ │ │ ├── companyInfo.blade.php │ │ │ │ │ ├── emptyComments.blade.php │ │ │ │ │ └── companyComments.blade.php │ │ │ └── companiesTable.blade.php │ │ ├── app.blade.php │ │ ├── footer.blade.php │ │ ├── breadcrumb │ │ │ └── breadcrumb.blade.php │ │ ├── search │ │ │ ├── helpUs.blade.php │ │ │ ├── filters │ │ │ │ └── card.blade.php │ │ │ └── emptyResult.blade.php │ │ ├── navigation │ │ │ ├── navigation.blade.php │ │ │ └── profile.blade.php │ │ └── profile │ │ │ └── sidebar.blade.php │ ├── auth │ │ └── logoutForm.blade.php │ ├── companies │ │ ├── show.blade.php │ │ ├── myCompanies.blade.php │ │ ├── index.blade.php │ │ └── create.blade.php │ ├── profile │ │ ├── dashboard.blade.php │ │ └── index.blade.php │ ├── index.blade.php │ ├── comments │ │ ├── index.blade.php │ │ ├── create.blade.php │ │ └── editCommentsModal.blade.php │ └── search │ │ └── index.blade.php ├── fonts │ └── shabnam │ │ ├── Shabnam-FD_0.ttf │ │ └── shabnam.css ├── js │ ├── bootstrap.js │ └── app.js └── sass │ ├── _variables.scss │ └── app.scss ├── .gitattributes ├── tests ├── TestCase.php ├── Unit │ └── ExampleTest.php ├── Feature │ └── ExampleTest.php └── CreatesApplication.php ├── .styleci.yml ├── app ├── Http │ ├── Controllers │ │ ├── HomeController.php │ │ ├── Controller.php │ │ ├── ProfileController.php │ │ ├── Auth │ │ │ ├── ForgotPasswordController.php │ │ │ ├── ResetPasswordController.php │ │ │ ├── ConfirmPasswordController.php │ │ │ ├── LoginController.php │ │ │ ├── VerificationController.php │ │ │ └── RegisterController.php │ │ ├── Search │ │ │ └── SearchController.php │ │ ├── CompanyController.php │ │ └── CommentController.php │ ├── Middleware │ │ ├── EncryptCookies.php │ │ ├── VerifyCsrfToken.php │ │ ├── PreventRequestsDuringMaintenance.php │ │ ├── TrustHosts.php │ │ ├── TrimStrings.php │ │ ├── Authenticate.php │ │ ├── TrustProxies.php │ │ └── RedirectIfAuthenticated.php │ ├── Requests │ │ ├── SearchRequest.php │ │ ├── StoreCompanyRequest.php │ │ ├── StoreCommentRequest.php │ │ └── UpdateCommentRequest.php │ └── Kernel.php ├── Repositories │ ├── IndustryRepository.php │ ├── JobRepository.php │ ├── UserRepository.php │ ├── CommentRepository.php │ └── CompanyRepository.php ├── Facades │ ├── JobFacade.php │ ├── IndustryFacade.php │ ├── UserFacade.php │ ├── CommentFacade.php │ └── CompanyFacade.php ├── Policies │ ├── CompanyPolicy.php │ └── CommentPolicy.php ├── Providers │ ├── BroadcastServiceProvider.php │ ├── AppServiceProvider.php │ ├── AuthServiceProvider.php │ ├── RepositoryServiceProvider.php │ ├── EventServiceProvider.php │ └── RouteServiceProvider.php ├── Models │ ├── Industry.php │ ├── Job.php │ ├── User.php │ ├── Company.php │ └── Comment.php ├── Console │ └── Kernel.php ├── Exceptions │ └── Handler.php └── Helpers │ └── helpers.php ├── .editorconfig ├── .gitignore ├── webpack.mix.js ├── lang ├── en │ ├── pagination.php │ ├── auth.php │ └── passwords.php └── en.json ├── routes ├── channels.php ├── api.php ├── console.php └── web.php ├── package.json ├── config ├── cors.php ├── services.php ├── view.php ├── hashing.php ├── broadcasting.php ├── sanctum.php ├── filesystems.php ├── queue.php ├── cache.php ├── mail.php ├── auth.php ├── logging.php ├── database.php ├── session.php └── app.php ├── LICENSE ├── phpunit.xml ├── artisan ├── composer.json └── README.md /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /database/.gitignore: -------------------------------------------------------------------------------- 1 | *.sqlite* 2 | -------------------------------------------------------------------------------- /bootstrap/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/logs/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | -------------------------------------------------------------------------------- /storage/app/public/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/app/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !public/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /storage/framework/testing/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/views/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/data/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/sessions/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !.gitignore 3 | -------------------------------------------------------------------------------- /storage/framework/cache/.gitignore: -------------------------------------------------------------------------------- 1 | * 2 | !data/ 3 | !.gitignore 4 | -------------------------------------------------------------------------------- /public/images/img.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arefSajjadi/companyux/HEAD/public/images/img.png -------------------------------------------------------------------------------- /public/images/default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arefSajjadi/companyux/HEAD/public/images/default.png -------------------------------------------------------------------------------- /resources/views/layouts/logo/simple.blade.php: -------------------------------------------------------------------------------- 1 |  {{config('app.name')}} 2 | -------------------------------------------------------------------------------- /resources/views/layouts/assets/js.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /resources/views/layouts/assets/css.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /resources/fonts/shabnam/Shabnam-FD_0.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/arefSajjadi/companyux/HEAD/resources/fonts/shabnam/Shabnam-FD_0.ttf -------------------------------------------------------------------------------- /resources/views/auth/logoutForm.blade.php: -------------------------------------------------------------------------------- 1 |
@csrf
2 | -------------------------------------------------------------------------------- /resources/fonts/shabnam/shabnam.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'companyux'; 3 | font-display: fallback; 4 | src: url('Shabnam-FD_0.ttf'); 5 | } 6 | -------------------------------------------------------------------------------- /storage/framework/.gitignore: -------------------------------------------------------------------------------- 1 | compiled.php 2 | config.php 3 | down 4 | events.scanned.php 5 | maintenance.php 6 | routes.php 7 | routes.scanned.php 8 | schedule-* 9 | services.json 10 | -------------------------------------------------------------------------------- /resources/js/bootstrap.js: -------------------------------------------------------------------------------- 1 | try { 2 | window.Popper = require('@popperjs/core'); 3 | window.$ = window.jQuery = require('jquery'); 4 | 5 | require('bootstrap'); 6 | } catch (e) {} 7 | -------------------------------------------------------------------------------- /resources/sass/_variables.scss: -------------------------------------------------------------------------------- 1 | // Body 2 | $body-bg: #f8fafc; 3 | 4 | // Typography 5 | $font-family-sans-serif: 'companyux', sans-serif; 6 | $font-size-base: 0.9rem; 7 | $line-height-base: 1.6; 8 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 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 | -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- 1 | orderBy('title')->get(); 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /resources/sass/app.scss: -------------------------------------------------------------------------------- 1 | // Fonts 2 | @import "../fonts/shabnam/shabnam.css"; 3 | 4 | // Variables 5 | @import 'variables'; 6 | 7 | // Bootstrap 8 | @import '~bootstrap/scss/bootstrap'; 9 | 10 | // Bootstrap Icons 11 | @import '~bootstrap-icons/font/bootstrap-icons.css'; 12 | 13 | //custom css 14 | @import "../css/app.css"; 15 | 16 | 17 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | end_of_line = lf 6 | insert_final_newline = true 7 | indent_style = space 8 | indent_size = 4 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 19 | -------------------------------------------------------------------------------- /tests/Unit/ExampleTest.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /resources/views/layouts/plugins/inputMaskScript.blade.php: -------------------------------------------------------------------------------- 1 | 8 | -------------------------------------------------------------------------------- /app/Facades/JobFacade.php: -------------------------------------------------------------------------------- 1 | $this->faker->title(), 14 | ]; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /app/Facades/IndustryFacade.php: -------------------------------------------------------------------------------- 1 | id === $company->user->id; 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /public/hot 3 | /public/storage 4 | /storage/*.key 5 | /vendor 6 | .env 7 | .env.backup 8 | .phpunit.result.cache 9 | docker-compose.override.yml 10 | Homestead.json 11 | Homestead.yaml 12 | npm-debug.log 13 | yarn-error.log 14 | /.idea 15 | /.vscode 16 | /public/css/app.css 17 | /public/js/app.js 18 | /public/mix-manifest.json 19 | /public/fonts 20 | package-lock.json 21 | composer.lock 22 | -------------------------------------------------------------------------------- /app/Http/Middleware/EncryptCookies.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /database/seeders/DatabaseSeeder.php: -------------------------------------------------------------------------------- 1 | create(); 14 | 15 | $this->call([ 16 | IndustrySeeder::class, 17 | JobSeeder::class 18 | ]); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /resources/views/companies/show.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | @includeWhen($breadcrumb,'layouts.breadcrumb.breadcrumb',$breadcrumb) 5 | 6 | @include('layouts.companies.show.sections.companyInfo') 7 | 8 | @include('layouts.companies.show.sections.companyComments') 9 | @endsection 10 | 11 | @section('scripts') 12 | @include('layouts.plugins.validateScript') 13 | @endsection 14 | -------------------------------------------------------------------------------- /app/Http/Middleware/VerifyCsrfToken.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/alert/store.blade.php: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /app/Http/Controllers/Controller.php: -------------------------------------------------------------------------------- 1 | $this->faker->userName(), 13 | 'password' => '$2y$10$92IXUNpkjO0rOQ5byMi.Ye4oKoEa3Ro9llC/.og/at2.uheWG/igi', // password 14 | ]; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /resources/views/layouts/master/metaTag.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | @hasSection('title') 5 | @yield('title') 6 | @else 7 | {{ config('app.name') }} 8 | @endif 9 | 10 | @hasSection('description') 11 | 12 | @else 13 | 14 | @endif 15 | -------------------------------------------------------------------------------- /app/Http/Middleware/PreventRequestsDuringMaintenance.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | // 16 | ]; 17 | } 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustHosts.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | public function hosts() 15 | { 16 | return [ 17 | $this->allSubdomainsOfApplicationUrl(), 18 | ]; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrimStrings.php: -------------------------------------------------------------------------------- 1 | 13 | */ 14 | protected $except = [ 15 | 'current_password', 16 | 'password', 17 | 'password_confirmation', 18 | ]; 19 | } 20 | -------------------------------------------------------------------------------- /tests/Feature/ExampleTest.php: -------------------------------------------------------------------------------- 1 | get('/'); 18 | 19 | $response->assertStatus(200); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Facades/UserFacade.php: -------------------------------------------------------------------------------- 1 | 2 | 4 |
5 |

6 | تجربه شما با موفقیت ویرایش شد 7 |

8 |
9 | 14 | 15 | -------------------------------------------------------------------------------- /tests/CreatesApplication.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class)->bootstrap(); 19 | 20 | return $app; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Providers/BroadcastServiceProvider.php: -------------------------------------------------------------------------------- 1 | [ 11 | [ 12 | 'title' => 'حساب کاربری', 13 | ], 14 | ] 15 | ]; 16 | 17 | return view('profile.dashboard', [ 18 | 'breadcrumb' => $breadcrumb, 19 | ]); 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /app/Models/Industry.php: -------------------------------------------------------------------------------- 1 | id === $comment->user->id; 16 | } 17 | 18 | public function delete(User $user, Comment $comment) 19 | { 20 | return $user->id === $comment->user->id; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/Http/Requests/SearchRequest.php: -------------------------------------------------------------------------------- 1 | 'required', 20 | 'industry' => 'nullable' 21 | ]; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/alert/destroy.blade.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/alert/destroy.blade.php: -------------------------------------------------------------------------------- 1 | 16 | -------------------------------------------------------------------------------- /app/Http/Middleware/Authenticate.php: -------------------------------------------------------------------------------- 1 | expectsJson()) { 18 | return route('login'); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /resources/views/profile/dashboard.blade.php: -------------------------------------------------------------------------------- 1 | @extends('profile.index') 2 | 3 | @section('card-header') 4 |
5 |
6 | 7 | پروفایل 8 |
9 |
10 | @endsection 11 | 12 | @section('card-body') 13 |
14 |
15 |

16 | 19 |
20 |
21 | @endsection 22 | -------------------------------------------------------------------------------- /webpack.mix.js: -------------------------------------------------------------------------------- 1 | const mix = require('laravel-mix'); 2 | 3 | /* 4 | |-------------------------------------------------------------------------- 5 | | Mix Asset Management 6 | |-------------------------------------------------------------------------- 7 | | 8 | | Mix provides a clean, fluent API for defining some Webpack build steps 9 | | for your Laravel application. By default, we are compiling the Sass 10 | | file for the application as well as bundling up all the JS files. 11 | | 12 | */ 13 | 14 | mix.js('resources/js/app.js', 'public/js') 15 | .vue() 16 | .sass('resources/sass/app.scss', 'public/css'); 17 | -------------------------------------------------------------------------------- /lang/en/pagination.php: -------------------------------------------------------------------------------- 1 | '« Previous', 17 | 'next' => 'Next »', 18 | 19 | ]; 20 | -------------------------------------------------------------------------------- /routes/channels.php: -------------------------------------------------------------------------------- 1 | id === (int) $id; 18 | }); 19 | -------------------------------------------------------------------------------- /app/Facades/CommentFacade.php: -------------------------------------------------------------------------------- 1 | get('/user', function (Request $request) { 18 | return $request->user(); 19 | }); 20 | -------------------------------------------------------------------------------- /resources/views/layouts/plugins/validateScript.blade.php: -------------------------------------------------------------------------------- 1 | 18 | -------------------------------------------------------------------------------- /app/Facades/CompanyFacade.php: -------------------------------------------------------------------------------- 1 | comment(Inspiring::quote()); 19 | })->purpose('Display an inspiring quote'); 20 | -------------------------------------------------------------------------------- /lang/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "The :attribute must contain at least one letter.": "The :attribute must contain at least one letter.", 3 | "The :attribute must contain at least one number.": "The :attribute must contain at least one number.", 4 | "The :attribute must contain at least one symbol.": "The :attribute must contain at least one symbol.", 5 | "The :attribute must contain at least one uppercase and one lowercase letter.": "The :attribute must contain at least one uppercase and one lowercase letter.", 6 | "The given :attribute has appeared in a data leak. Please choose a different :attribute.": "The given :attribute has appeared in a data leak. Please choose a different :attribute." 7 | } 8 | -------------------------------------------------------------------------------- /app/Models/Job.php: -------------------------------------------------------------------------------- 1 | hasMany(Comment::class, 'job_id'); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /public/.htaccess: -------------------------------------------------------------------------------- 1 | 2 | 3 | Options -MultiViews -Indexes 4 | 5 | 6 | RewriteEngine On 7 | 8 | # Handle Authorization Header 9 | RewriteCond %{HTTP:Authorization} . 10 | RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] 11 | 12 | # Redirect Trailing Slashes If Not A Folder... 13 | RewriteCond %{REQUEST_FILENAME} !-d 14 | RewriteCond %{REQUEST_URI} (.+)/$ 15 | RewriteRule ^ %1 [L,R=301] 16 | 17 | # Send Requests To Front Controller... 18 | RewriteCond %{REQUEST_FILENAME} !-d 19 | RewriteCond %{REQUEST_FILENAME} !-f 20 | RewriteRule ^ index.php [L] 21 | 22 | -------------------------------------------------------------------------------- /app/Providers/AppServiceProvider.php: -------------------------------------------------------------------------------- 1 | 5 | @includeWhen($breadcrumb,'layouts.breadcrumb.breadcrumb',$breadcrumb) 6 | 7 |
8 |
9 | @include('layouts.profile.sidebar') 10 |
11 |
12 |
13 | @yield('card-header') 14 | @yield('card-body') 15 | @yield('card-footer') 16 |
17 |
18 |
19 | 20 | @endsection 21 | -------------------------------------------------------------------------------- /resources/views/layouts/app.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | @include('layouts.master.metaTag') 9 | 10 | @include('layouts.assets.css') 11 | 12 | @yield('styles') 13 | 14 | 15 | 16 |
17 | @include('layouts.navigation.navigation') 18 | 19 |
20 | @yield('content') 21 |
22 | 23 | @include('layouts.footer') 24 |
25 | 26 | 27 | @include('layouts.assets.js') 28 | 29 | @yield('scripts') 30 | 31 | 32 | -------------------------------------------------------------------------------- /lang/en/auth.php: -------------------------------------------------------------------------------- 1 | 'حساب کاربری با این مشخصات وجود ندارد', 17 | 'throttle' => 'تعداد دفعات ورود بیش از حد مجاز است، لطفا بعد از :seconds ثانیه مجدد تلاش نمایید', 18 | 'password' => 'رمز ورود وارد شده نادرست است', 19 | 20 | ]; 21 | -------------------------------------------------------------------------------- /app/Providers/AuthServiceProvider.php: -------------------------------------------------------------------------------- 1 | 14 | */ 15 | protected $policies = [ 16 | // 'App\Models\Model' => 'App\Policies\ModelPolicy', 17 | ]; 18 | 19 | /** 20 | * Register any authentication / authorization services. 21 | * 22 | * @return void 23 | */ 24 | public function boot() 25 | { 26 | $this->registerPolicies(); 27 | 28 | // 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /app/Repositories/UserRepository.php: -------------------------------------------------------------------------------- 1 | user = Auth::user(); 16 | } 17 | 18 | public function comments(int $paginate = 10): LengthAwarePaginator 19 | { 20 | return $this->user->comments()->orderByDesc('created_at')->paginate($paginate); 21 | } 22 | 23 | public function companies(int $paginate = 10): LengthAwarePaginator 24 | { 25 | return $this->user->companies()->orderByDesc('created_at')->paginate($paginate); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /resources/views/layouts/footer.blade.php: -------------------------------------------------------------------------------- 1 | @unless(request()->route()->named('index') or request()->route()->named('login')) 2 | 17 | @endunless 18 | -------------------------------------------------------------------------------- /app/Http/Middleware/TrustProxies.php: -------------------------------------------------------------------------------- 1 | |string|null 14 | */ 15 | protected $proxies; 16 | 17 | /** 18 | * The headers that should be used to detect proxies. 19 | * 20 | * @var int 21 | */ 22 | protected $headers = 23 | Request::HEADER_X_FORWARDED_FOR | 24 | Request::HEADER_X_FORWARDED_HOST | 25 | Request::HEADER_X_FORWARDED_PORT | 26 | Request::HEADER_X_FORWARDED_PROTO | 27 | Request::HEADER_X_FORWARDED_AWS_ELB; 28 | } 29 | -------------------------------------------------------------------------------- /database/migrations/2022_02_10_171899_create_jobs_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | $table->string('title'); 20 | }); 21 | } 22 | 23 | /** 24 | * Reverse the migrations. 25 | * 26 | * @return void 27 | */ 28 | public function down() 29 | { 30 | Schema::dropIfExists('jobs'); 31 | } 32 | }; 33 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ForgotPasswordController.php: -------------------------------------------------------------------------------- 1 | command('inspire')->hourly(); 19 | } 20 | 21 | /** 22 | * Register the commands for the application. 23 | * 24 | * @return void 25 | */ 26 | protected function commands() 27 | { 28 | $this->load(__DIR__.'/Commands'); 29 | 30 | require base_path('routes/console.php'); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /lang/en/passwords.php: -------------------------------------------------------------------------------- 1 | 'Your password has been reset!', 17 | 'sent' => 'We have emailed your password reset link!', 18 | 'throttled' => 'Please wait before retrying.', 19 | 'token' => 'This password reset token is invalid.', 20 | 'user' => "We can't find a user with that email address.", 21 | 22 | ]; 23 | -------------------------------------------------------------------------------- /database/migrations/2022_02_10_171823_create_industries_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | $table->softDeletes(); 20 | $table->string('title'); 21 | }); 22 | } 23 | 24 | /** 25 | * Reverse the migrations. 26 | * 27 | * @return void 28 | */ 29 | public function down() 30 | { 31 | Schema::dropIfExists('industries'); 32 | } 33 | }; 34 | -------------------------------------------------------------------------------- /resources/views/layouts/breadcrumb/breadcrumb.blade.php: -------------------------------------------------------------------------------- 1 | 20 | -------------------------------------------------------------------------------- /resources/views/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 |
5 |
6 |

یک شرکت و چند تجربه

7 |
8 |
9 | 12 | 14 |
15 |
16 |
17 |
18 | @endsection 19 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/alert/store.blade.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /resources/views/layouts/search/helpUs.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
4 | کمک به توسعه 5 |
6 |
7 |
8 |
9 |

10 | برای هرچه جامع تر شدن این پلتفرم اگر شرکت موردنظر خود را پیدا نکرده اید 11 | میتوانید درخواست ثبت آنرا برای ما ارسال کنید :) 12 |

13 |
14 | 16 | درخواست افزودن شرکت 17 | 18 |
19 |
20 |
21 | -------------------------------------------------------------------------------- /database/migrations/2014_10_12_000000_create_users_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->string('username')->unique('username_unique'); 19 | $table->string('password'); 20 | $table->rememberToken(); 21 | $table->timestamps(); 22 | }); 23 | } 24 | 25 | /** 26 | * Reverse the migrations. 27 | * 28 | * @return void 29 | */ 30 | public function down() 31 | { 32 | Schema::dropIfExists('users'); 33 | } 34 | }; 35 | -------------------------------------------------------------------------------- /app/Http/Requests/StoreCompanyRequest.php: -------------------------------------------------------------------------------- 1 | 'required|string', 24 | 'brand' => 'required|string', 25 | 'telephone' => 'nullable|numeric', 26 | 'url' => 'nullable|string', 27 | 'employees' => 'nullable|int', 28 | 'establishment_at' => 'nullable|int', 29 | 'industry_id' => 'required|int|exists:industries,id' 30 | ]; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "scripts": { 4 | "dev": "npm run development", 5 | "development": "mix", 6 | "watch": "mix watch", 7 | "watch-poll": "mix watch -- --watch-options-poll=1000", 8 | "hot": "mix watch --hot", 9 | "prod": "npm run production", 10 | "production": "mix --production" 11 | }, 12 | "devDependencies": { 13 | "@popperjs/core": "^2.11.2", 14 | "axios": "^0.25", 15 | "bootstrap": "^5.1.3", 16 | "laravel-mix": "^6.0.6", 17 | "lodash": "^4.17.19", 18 | "postcss": "^8.1.14", 19 | "resolve-url-loader": "^3.1.2", 20 | "sass": "^1.32.11", 21 | "sass-loader": "^11.0.1", 22 | "vue": "^2.6.12", 23 | "vue-loader": "^15.9.8", 24 | "vue-template-compiler": "^2.6.12" 25 | }, 26 | "dependencies": { 27 | "bootstrap-icons": "^1.8.1", 28 | "jquery": "^3.6.0" 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/rejectReasonModal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 23 | -------------------------------------------------------------------------------- /config/cors.php: -------------------------------------------------------------------------------- 1 | ['api/*', 'sanctum/csrf-cookie'], 19 | 20 | 'allowed_methods' => ['*'], 21 | 22 | 'allowed_origins' => ['*'], 23 | 24 | 'allowed_origins_patterns' => [], 25 | 26 | 'allowed_headers' => ['*'], 27 | 28 | 'exposed_headers' => [], 29 | 30 | 'max_age' => 0, 31 | 32 | 'supports_credentials' => false, 33 | 34 | ]; 35 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ResetPasswordController.php: -------------------------------------------------------------------------------- 1 | > 14 | */ 15 | protected $dontReport = [ 16 | // 17 | ]; 18 | 19 | /** 20 | * A list of the inputs that are never flashed for validation exceptions. 21 | * 22 | * @var array 23 | */ 24 | protected $dontFlash = [ 25 | 'current_password', 26 | 'password', 27 | 'password_confirmation', 28 | ]; 29 | 30 | /** 31 | * Register the exception handling callbacks for the application. 32 | * 33 | * @return void 34 | */ 35 | public function register() 36 | { 37 | $this->reportable(function (Throwable $e) { 38 | // 39 | }); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /resources/views/companies/myCompanies.blade.php: -------------------------------------------------------------------------------- 1 | @extends('profile.index') 2 | 3 | @section('card-header') 4 |
5 |
6 | 7 | شرکت ها 8 |
9 |
10 | @endsection 11 | 12 | @section('card-body') 13 |
14 | @includeWhen(session('company_store'),'layouts.companies.alert.store') 15 | @includeWhen(session('company_destroy'),'layouts.companies.alert.destroy') 16 | 17 | @includeWhen($companies->isEmpty(), 'layouts.companies.empty') 18 | 19 | @includeWhen($companies->isNotEmpty(),'layouts.companies.companiesTable') 20 |
21 | @endsection 22 | 23 | @section('card-footer') 24 | @if($companies->total() > $companies->perPage()) 25 | 28 | @endif 29 | @endsection 30 | 31 | @section('scripts') 32 | @include('layouts.plugins.validateScript') 33 | @endsection 34 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/rejectReasonModal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 24 | -------------------------------------------------------------------------------- /app/Http/Middleware/RedirectIfAuthenticated.php: -------------------------------------------------------------------------------- 1 | check()) { 26 | return redirect(RouteServiceProvider::HOME); 27 | } 28 | } 29 | 30 | return $next($request); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/item/card.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | {{$company->name}} 7 |
8 |
9 | 10 |
11 | @include('layouts.companies.Indicators') 12 |
13 |
14 |
15 | 21 |
22 |
23 | -------------------------------------------------------------------------------- /app/Providers/RepositoryServiceProvider.php: -------------------------------------------------------------------------------- 1 | app->singleton('comment', CommentRepository::class); 22 | $this->app->bind('company', CompanyRepository::class); 23 | $this->app->bind('job', JobRepository::class); 24 | $this->app->bind('user', UserRepository::class); 25 | $this->app->bind('industry', IndustryRepository::class); 26 | } 27 | 28 | /** 29 | * Bootstrap services. 30 | * 31 | * @return void 32 | */ 33 | public function boot() 34 | { 35 | // 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /app/Models/User.php: -------------------------------------------------------------------------------- 1 | hasMany(Company::class, 'user_id'); 36 | } 37 | 38 | public function comments(): HasMany 39 | { 40 | return $this->hasMany(Comment::class, 'user_id'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /app/Http/Requests/StoreCommentRequest.php: -------------------------------------------------------------------------------- 1 | 'required|int', 26 | 'display_name' => 'required|string', 27 | 'comment' => 'required|string', 28 | 'type' => 'required|string|' . Rule::in([Comment::type_employ, Comment::type_interviewee, Comment::type_other]), 29 | 'hire' => 'nullable', 30 | 'requested_wage' => 'required|string', 31 | 'received_wage' => 'required|string', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /app/Http/Requests/UpdateCommentRequest.php: -------------------------------------------------------------------------------- 1 | 'required|int', 26 | 'display_name' => 'required|string', 27 | 'comment' => 'required|string', 28 | 'type' => 'required|string|' . Rule::in([Comment::type_employ, Comment::type_interviewee, Comment::type_other]), 29 | 'hire' => 'nullable', 30 | 'requested_wage' => 'required|string', 31 | 'received_wage' => 'required|string', 32 | ]; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /config/services.php: -------------------------------------------------------------------------------- 1 | [ 18 | 'domain' => env('MAILGUN_DOMAIN'), 19 | 'secret' => env('MAILGUN_SECRET'), 20 | 'endpoint' => env('MAILGUN_ENDPOINT', 'api.mailgun.net'), 21 | ], 22 | 23 | 'postmark' => [ 24 | 'token' => env('POSTMARK_TOKEN'), 25 | ], 26 | 27 | 'ses' => [ 28 | 'key' => env('AWS_ACCESS_KEY_ID'), 29 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 30 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 31 | ], 32 | 33 | ]; 34 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/Indicators.blade.php: -------------------------------------------------------------------------------- 1 | 34 | -------------------------------------------------------------------------------- /app/Providers/EventServiceProvider.php: -------------------------------------------------------------------------------- 1 | > 16 | */ 17 | protected $listen = [ 18 | Registered::class => [ 19 | SendEmailVerificationNotification::class, 20 | ], 21 | ]; 22 | 23 | /** 24 | * Register any events for your application. 25 | * 26 | * @return void 27 | */ 28 | public function boot() 29 | { 30 | // 31 | } 32 | 33 | /** 34 | * Determine if events and listeners should be automatically discovered. 35 | * 36 | * @return bool 37 | */ 38 | public function shouldDiscoverEvents() 39 | { 40 | return false; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Aref Sajjadi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /resources/views/comments/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('profile.index') 2 | 3 | @section('card-header') 4 |
5 |
6 | 7 | لیست تجربه های ثبت شده شما 8 |
9 |
10 | @endsection 11 | 12 | @section('card-body') 13 |
14 | @includeWhen(session('comment_store'),'layouts.comments.alert.store') 15 | @includeWhen(session('comment_update'),'layouts.comments.alert.update') 16 | @includeWhen(session('comment_destroy'),'layouts.comments.alert.destroy') 17 | 18 | @includeWhen($comments->isEmpty(), 'layouts.comments.empty') 19 | 20 | @includeWhen($comments->isNotEmpty(),'layouts.comments.commentsTable') 21 |
22 | @endsection 23 | 24 | @section('card-footer') 25 | @if($comments->total() > $comments->perPage()) 26 | 29 | @endif 30 | @endsection 31 | 32 | @section('scripts') 33 | @include('layouts.plugins.inputMaskScript') 34 | @include('layouts.plugins.validateScript') 35 | @endsection 36 | -------------------------------------------------------------------------------- /config/view.php: -------------------------------------------------------------------------------- 1 | [ 17 | resource_path('views'), 18 | ], 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Compiled View Path 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This option determines where all the compiled Blade templates will be 26 | | stored for your application. Typically, this is within the storage 27 | | directory. However, as usual, you are free to change this value. 28 | | 29 | */ 30 | 31 | 'compiled' => env( 32 | 'VIEW_COMPILED_PATH', 33 | realpath(storage_path('framework/views')) 34 | ), 35 | 36 | ]; 37 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/ConfirmPasswordController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /resources/views/layouts/search/filters/card.blade.php: -------------------------------------------------------------------------------- 1 | 2 |
3 |
فیلتر ها
4 |
5 | 6 |
7 | @if(request()->exists('key')) 8 | 9 | @endif 10 |
11 | 20 | 21 |
22 |
23 |
24 |
25 | -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 9 | ./tests/Unit 10 | 11 | 12 | ./tests/Feature 13 | 14 | 15 | 16 | 17 | ./app 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/LoginController.php: -------------------------------------------------------------------------------- 1 | middleware('guest')->except('logout'); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/deleteCompaniesModal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 29 | -------------------------------------------------------------------------------- /resources/views/layouts/navigation/navigation.blade.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/deleteCommentsModal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 29 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/VerificationController.php: -------------------------------------------------------------------------------- 1 | middleware('auth'); 39 | $this->middleware('signed')->only('verify'); 40 | $this->middleware('throttle:6,1')->only('verify', 'resend'); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /resources/views/layouts/navigation/profile.blade.php: -------------------------------------------------------------------------------- 1 | @auth 2 | 24 | @else 25 | 27 | ورود به حساب کاربری 28 | 29 | @endauth 30 | -------------------------------------------------------------------------------- /resources/views/layouts/profile/sidebar.blade.php: -------------------------------------------------------------------------------- 1 |
2 | 3 | 31 |
32 | -------------------------------------------------------------------------------- /app/Repositories/CommentRepository.php: -------------------------------------------------------------------------------- 1 | comments()->create([ 15 | 'job_id' => $data['job_id'], 16 | 'company_id' => $company->id, 17 | 'display_name' => $data['display_name'], 18 | 'comment' => $data['comment'], 19 | 'status' => Comment::STATUS_WAITING, 20 | 'type' => $data['type'], 21 | 'hire' => $data['hire'], 22 | 'requested_wage' => $data['requested_wage'], 23 | 'received_wage' => $data['received_wage'] 24 | ]); 25 | } 26 | 27 | public function update(Comment $comment, array $data): bool 28 | { 29 | return $comment->update([ 30 | 'job_id' => $data['job_id'], 31 | 'display_name' => $data['display_name'], 32 | 'comment' => $data['comment'], 33 | 'status' => $data['status'], 34 | 'type' => $data['type'], 35 | 'hire' => $data['hire'], 36 | 'requested_wage' => $data['requested_wage'], 37 | 'received_wage' => $data['received_wage'] 38 | ]); 39 | } 40 | 41 | public function delete(Comment $comment): void 42 | { 43 | $comment->delete(); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /app/Repositories/CompanyRepository.php: -------------------------------------------------------------------------------- 1 | select('id', 'industry_id', 'name', 'brand', 'establishment_at', 'employees', 'url') 18 | ->where('status', Company::STATUS_ACTIVE) 19 | ->when(request()->filled('industry'), function (Builder $query) { 20 | $query->where('industry_id', request('industry')); 21 | })->with('industry') 22 | ->orderBy('created_at')->paginate($paginate); 23 | } 24 | 25 | public function store(User $user, array $data): Model 26 | { 27 | return $user->companies()->create([ 28 | 'establishment_at' => $data['establishment_at'], 29 | 'industry_id' => $data['industry_id'], 30 | 'name' => $data['name'], 31 | 'brand' => $data['brand'], 32 | 'telephone' => $data['telephone'], 33 | 'url' => $data['url'], 34 | 'employees' => $data['employees'], 35 | 'status' => Company::STATUS_WAITING 36 | ]); 37 | } 38 | 39 | public function delete(Company $company): void 40 | { 41 | $company->delete(); 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/empty.blade.php: -------------------------------------------------------------------------------- 1 | 35 | -------------------------------------------------------------------------------- /resources/views/search/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | @includeWhen($breadcrumb,'layouts.breadcrumb.breadcrumb',$breadcrumb) 5 |
6 |
7 |
8 | @include('layouts.search.filters.card') 9 | @includeWhen($companies?->count(), 'layouts.search.helpUs') 10 |
11 |
12 |
13 |
14 | شرکت های مرتبط ~ 15 | {{$companies?->count()}} 16 |
17 |
18 |
19 | @forelse($companies as $company) 20 |
21 | @include('layouts.companies.item.card', ['company' => $company]) 22 |
23 | @empty 24 | @include('layouts.search.emptyResult') 25 | @endforelse 26 |
27 |
28 | @if($companies->total() > $companies->perPage()) 29 | 32 | @endif 33 |
34 |
35 |
36 |
37 | @endsection 38 | -------------------------------------------------------------------------------- /resources/views/companies/index.blade.php: -------------------------------------------------------------------------------- 1 | @extends('layouts.app') 2 | 3 | @section('content') 4 | @includeWhen($breadcrumb,'layouts.breadcrumb.breadcrumb',$breadcrumb) 5 |
6 |
7 |
8 | @include('layouts.search.filters.card') 9 | @includeWhen($companies?->count(), 'layouts.search.helpUs') 10 |
11 |
12 |
13 |
14 | لیست شرکت ها ~ 15 | {{$companies?->count()}} 16 |
17 |
18 |
19 | @forelse($companies as $company) 20 |
21 | @include('layouts.companies.item.card', ['company' => $company]) 22 |
23 | @empty 24 | @include('layouts.search.emptyResult') 25 | @endforelse 26 |
27 |
28 | @if($companies->total() > $companies->perPage()) 29 | 32 | @endif 33 |
34 |
35 |
36 |
37 | @endsection 38 | -------------------------------------------------------------------------------- /config/hashing.php: -------------------------------------------------------------------------------- 1 | 'bcrypt', 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Bcrypt Options 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may specify the configuration options that should be used when 26 | | passwords are hashed using the Bcrypt algorithm. This will allow you 27 | | to control the amount of time it takes to hash the given password. 28 | | 29 | */ 30 | 31 | 'bcrypt' => [ 32 | 'rounds' => env('BCRYPT_ROUNDS', 10), 33 | ], 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Argon Options 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may specify the configuration options that should be used when 41 | | passwords are hashed using the Argon algorithm. These will allow you 42 | | to control the amount of time it takes to hash the given password. 43 | | 44 | */ 45 | 46 | 'argon' => [ 47 | 'memory' => 65536, 48 | 'threads' => 1, 49 | 'time' => 4, 50 | ], 51 | 52 | ]; 53 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/show/sections/companyInfo.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | {{$company->name}} 6 |
7 |
8 |
9 |

{{ $company->title }}

10 | @include('layouts.companies.Indicators') 11 |
12 |
13 |
14 |
15 | 24 | 32 |
33 |
34 |
35 |
36 |
37 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/empty.blade.php: -------------------------------------------------------------------------------- 1 | 41 | -------------------------------------------------------------------------------- /app/Helpers/helpers.php: -------------------------------------------------------------------------------- 1 | route()->named($routeName)) 17 | return $output; 18 | return null; 19 | } 20 | 21 | function loopWithPaginate($loop, $items): float|int 22 | { 23 | return $loop->iteration + (($items->currentPage() - 1) * $items->perPage()); 24 | } 25 | 26 | function companyStatus(string $status): string 27 | { 28 | return match ($status) { 29 | Company::STATUS_ACTIVE => 'منتشر شده', 30 | Company::STATUS_REJECT => 'رد شده', 31 | default => 'درحال بررسی' 32 | }; 33 | } 34 | 35 | function commentType(string $type): string 36 | { 37 | return match ($type) { 38 | Comment::type_employ => 'کارمند', 39 | Comment::type_interviewee => 'مصاحبه شونده', 40 | default => 'سایر', 41 | }; 42 | } 43 | 44 | function commentStatus(string $status): string 45 | { 46 | return match ($status) { 47 | Comment::STATUS_ACTIVE => 'منتشر شده', 48 | Comment::STATUS_REJECT => 'رد شده', 49 | default => 'درحال بررسی' 50 | }; 51 | } 52 | 53 | function price(int $price): string 54 | { 55 | return number_format($price) . ' تومان'; 56 | } 57 | 58 | function breadcrumb(array ...$items): array 59 | { 60 | foreach ($items as $key => $item) { 61 | $breadcrumb['items'][$key] = [ 62 | 'title' => $item[0], 63 | 'link' => $item[1] ?? null 64 | ]; 65 | } 66 | return $breadcrumb ?? []; 67 | } 68 | -------------------------------------------------------------------------------- /bootstrap/app.php: -------------------------------------------------------------------------------- 1 | singleton( 30 | Illuminate\Contracts\Http\Kernel::class, 31 | App\Http\Kernel::class 32 | ); 33 | 34 | $app->singleton( 35 | Illuminate\Contracts\Console\Kernel::class, 36 | App\Console\Kernel::class 37 | ); 38 | 39 | $app->singleton( 40 | Illuminate\Contracts\Debug\ExceptionHandler::class, 41 | App\Exceptions\Handler::class 42 | ); 43 | 44 | /* 45 | |-------------------------------------------------------------------------- 46 | | Return The Application 47 | |-------------------------------------------------------------------------- 48 | | 49 | | This script returns the application instance. The instance is given to 50 | | the calling script so we can separate the building of the instances 51 | | from the actual running of the application and sending responses. 52 | | 53 | */ 54 | 55 | return $app; 56 | -------------------------------------------------------------------------------- /database/migrations/2022_02_10_171907_create_companies_table.php: -------------------------------------------------------------------------------- 1 | id(); 18 | $table->timestamps(); 19 | $table->softDeletes(); 20 | $table->unsignedBigInteger('user_id')->index(); 21 | $table->unsignedBigInteger('industry_id')->index(); 22 | $table->string('name'); 23 | $table->string('brand'); 24 | $table->string('url')->nullable(); 25 | $table->bigInteger('telephone')->nullable(); 26 | $table->integer('employees')->nullable(); 27 | $table->integer('establishment_at')->nullable(); 28 | $table->string('status')->default(Company::STATUS_WAITING); 29 | $table->text('logo')->nullable(); 30 | $table->text('reason')->nullable(); 31 | 32 | $table->foreign('user_id') 33 | ->on('users') 34 | ->references('id') 35 | ->onDelete('RESTRICT') 36 | ->onUpdate('CASCADE'); 37 | 38 | $table->foreign('industry_id') 39 | ->on('industries') 40 | ->references('id') 41 | ->onDelete('RESTRICT') 42 | ->onUpdate('CASCADE'); 43 | }); 44 | } 45 | 46 | /** 47 | * Reverse the migrations. 48 | * 49 | * @return void 50 | */ 51 | public function down() 52 | { 53 | Schema::dropIfExists('companies'); 54 | } 55 | }; 56 | -------------------------------------------------------------------------------- /artisan: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env php 2 | make(Illuminate\Contracts\Console\Kernel::class); 34 | 35 | $status = $kernel->handle( 36 | $input = new Symfony\Component\Console\Input\ArgvInput, 37 | new Symfony\Component\Console\Output\ConsoleOutput 38 | ); 39 | 40 | /* 41 | |-------------------------------------------------------------------------- 42 | | Shutdown The Application 43 | |-------------------------------------------------------------------------- 44 | | 45 | | Once Artisan has finished running, we will fire off the shutdown events 46 | | so that any final work may be done by the application before we shut 47 | | down the process. This is the last thing to happen to the request. 48 | | 49 | */ 50 | 51 | $kernel->terminate($input, $status); 52 | 53 | exit($status); 54 | -------------------------------------------------------------------------------- /resources/views/layouts/search/emptyResult.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
5 |
6 |
7 | pergas 9 |
10 |
11 |
12 |
13 |

ثبت شرکت

14 |

15 | شرکتی با این عنوان یافت نشد میتوانید درخواست خود را برای ثبت این 16 | شرکت به راحتی ثبت کنید 17 |

18 |
19 |
20 |
21 |
22 |

23 | جهت ثبت درخواست بر روی دکمه زیر کلیک نمایید 24 |

25 | 27 | درخواست افزودن شرکت 28 | 29 |
30 |
31 |
32 |

33 | توجه داشته باشید که اطلاعات اولیه که از شما گرفته میشود بررسی میشود و 34 | درصورت تایید نهایت تا ۲۴ ساعت شرکت به پایگاه داده ما اضافه خواهد شد، ممنونیم که در 35 | توسعه این پلتفرم کمک میکنید 36 |

37 |
38 |
39 |
40 | -------------------------------------------------------------------------------- /public/index.php: -------------------------------------------------------------------------------- 1 | make(Kernel::class); 50 | 51 | $response = $kernel->handle( 52 | $request = Request::capture() 53 | )->send(); 54 | 55 | $kernel->terminate($request, $response); 56 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/show/sections/emptyComments.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
5 |
6 |
7 | pergas 9 |
10 |
11 |
12 |
13 |

برای این شرکت هنوز تجربه ای ثبت نشده است

14 |

15 | اگر شما به هرنوعی با این شرکت ارتباط داشته اید و میتوانید تجربه خود را برای دیگران به اشتراک بگذارید 16 |

17 |
18 |
19 |
20 |
21 |

22 | جهت ثبت تجربه خود بر روی دکمه زیر کلیک نمایید 23 |

24 | 26 | ثبت تجربه یا نظر 27 | 28 |
29 |
30 |
31 |

32 | توجه داشته باشید که اطلاعات اولیه که از شما گرفته میشود بررسی میشود و درصورت تایید، نهایت تا ۲۴ ساعت در 33 | کنار تجربه دیگران قرار میگیرد، ممنونیم که در توسعه این پلتفرم کمک میکنید! 34 |

35 |
36 |
37 |
38 | -------------------------------------------------------------------------------- /app/Providers/RouteServiceProvider.php: -------------------------------------------------------------------------------- 1 | configureRateLimiting(); 39 | 40 | $this->routes(function () { 41 | Route::prefix('api') 42 | ->middleware('api') 43 | ->namespace($this->namespace) 44 | ->group(base_path('routes/api.php')); 45 | 46 | Route::middleware('web') 47 | ->namespace($this->namespace) 48 | ->group(base_path('routes/web.php')); 49 | }); 50 | } 51 | 52 | /** 53 | * Configure the rate limiters for the application. 54 | * 55 | * @return void 56 | */ 57 | protected function configureRateLimiting() 58 | { 59 | RateLimiter::for('api', function (Request $request) { 60 | return Limit::perMinute(60)->by($request->user()?->id ?: $request->ip()); 61 | }); 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /database/migrations/2022_02_10_174219_create_comments_table.php: -------------------------------------------------------------------------------- 1 | id(); 17 | $table->timestamps(); 18 | $table->softDeletes(); 19 | $table->unsignedBigInteger('user_id')->index(); 20 | $table->unsignedBigInteger('company_id')->index(); 21 | $table->unsignedBigInteger('job_id')->index(); 22 | $table->string('display_name'); 23 | $table->text('comment'); 24 | $table->string('status'); 25 | $table->string('type'); 26 | $table->boolean('hire'); 27 | $table->bigInteger('requested_wage'); 28 | $table->bigInteger('received_wage'); 29 | $table->text('reason')->nullable(); 30 | 31 | $table->foreign('user_id') 32 | ->on('users') 33 | ->references('id') 34 | ->onDelete('RESTRICT') 35 | ->onUpdate('CASCADE'); 36 | 37 | $table->foreign('company_id') 38 | ->on('companies') 39 | ->references('id') 40 | ->onDelete('CASCADE') 41 | ->onUpdate('CASCADE'); 42 | 43 | $table->foreign('job_id') 44 | ->on('jobs') 45 | ->references('id') 46 | ->onDelete('RESTRICT') 47 | ->onUpdate('CASCADE'); 48 | }); 49 | } 50 | 51 | /** 52 | * Reverse the migrations. 53 | * 54 | * @return void 55 | */ 56 | public function down() 57 | { 58 | Schema::dropIfExists('comments'); 59 | } 60 | }; 61 | -------------------------------------------------------------------------------- /app/Http/Controllers/Search/SearchController.php: -------------------------------------------------------------------------------- 1 | key; 15 | } 16 | 17 | public function searchResult(SearchRequest $request) 18 | { 19 | $breadcrumb = [ 20 | 'items' => [ 21 | [ 22 | 'title' => 'جستجو' 23 | ], 24 | [ 25 | 'title' => $request->key 26 | ] 27 | ] 28 | ]; 29 | 30 | $reservedSymbols = ['-', '+', '<', '>', '@', '(', ')', '~']; 31 | $searchTerm = str_replace($reservedSymbols, ' ', $request->key); 32 | $searchValues = preg_split('/\s+/', $searchTerm, -1, PREG_SPLIT_NO_EMPTY); 33 | 34 | $companies = Company::query() 35 | ->where('status', Company::STATUS_ACTIVE) 36 | ->when($request->filled('industry'), function (Builder $query) use ($request) { 37 | $query->where('industry_id', $request->industry); 38 | }) 39 | ->where(function (Builder $query) use ($searchValues, $searchTerm) { 40 | $query->orWhere('name', 'like', "%{$searchTerm}%"); 41 | $query->orWhere('brand', 'like', "%{$searchTerm}%"); 42 | }) 43 | ->where(function (Builder $query) use ($searchValues) { 44 | foreach ($searchValues as $value) { 45 | $query->orWhere('name', 'like', "%{$value}%"); 46 | $query->orWhere('brand', 'like', "%{$value}%"); 47 | } 48 | })->paginate(30); 49 | 50 | return view('search.index', [ 51 | 'breadcrumb' => $breadcrumb, 52 | 'companies' => $companies 53 | ]); 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /config/broadcasting.php: -------------------------------------------------------------------------------- 1 | env('BROADCAST_DRIVER', 'null'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Broadcast Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the broadcast connections that will be used 26 | | to broadcast events to other systems or over websockets. Samples of 27 | | each available type of connection are provided inside this array. 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'pusher' => [ 34 | 'driver' => 'pusher', 35 | 'key' => env('PUSHER_APP_KEY'), 36 | 'secret' => env('PUSHER_APP_SECRET'), 37 | 'app_id' => env('PUSHER_APP_ID'), 38 | 'options' => [ 39 | 'cluster' => env('PUSHER_APP_CLUSTER'), 40 | 'useTLS' => true, 41 | ], 42 | 'client_options' => [ 43 | // Guzzle client options: https://docs.guzzlephp.org/en/stable/request-options.html 44 | ], 45 | ], 46 | 47 | 'ably' => [ 48 | 'driver' => 'ably', 49 | 'key' => env('ABLY_KEY'), 50 | ], 51 | 52 | 'redis' => [ 53 | 'driver' => 'redis', 54 | 'connection' => 'default', 55 | ], 56 | 57 | 'log' => [ 58 | 'driver' => 'log', 59 | ], 60 | 61 | 'null' => [ 62 | 'driver' => 'null', 63 | ], 64 | 65 | ], 66 | 67 | ]; 68 | -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "laravel/laravel", 3 | "type": "project", 4 | "description": "The Laravel Framework.", 5 | "keywords": ["framework", "laravel"], 6 | "license": "MIT", 7 | "require": { 8 | "php": "^8.0.2", 9 | "fruitcake/laravel-cors": "^2.0.5", 10 | "guzzlehttp/guzzle": "^7.2", 11 | "laravel/framework": "^9.0", 12 | "laravel/sanctum": "^2.14", 13 | "laravel/tinker": "^2.7", 14 | "laravel/ui": "^3.4", 15 | "morilog/jalali": "3.*" 16 | }, 17 | "require-dev": { 18 | "fakerphp/faker": "^1.9.1", 19 | "laravel/sail": "^1.0.1", 20 | "mockery/mockery": "^1.4.4", 21 | "nunomaduro/collision": "^6.1", 22 | "phpunit/phpunit": "^9.5.10", 23 | "spatie/laravel-ignition": "^1.0" 24 | }, 25 | "autoload": { 26 | "files": [ 27 | "app/Helpers/helpers.php" 28 | ], 29 | "psr-4": { 30 | "App\\": "app/", 31 | "Database\\Factories\\": "database/factories/", 32 | "Database\\Seeders\\": "database/seeders/" 33 | } 34 | }, 35 | "autoload-dev": { 36 | "psr-4": { 37 | "Tests\\": "tests/" 38 | } 39 | }, 40 | "scripts": { 41 | "post-autoload-dump": [ 42 | "Illuminate\\Foundation\\ComposerScripts::postAutoloadDump", 43 | "@php artisan package:discover --ansi" 44 | ], 45 | "post-update-cmd": [ 46 | "@php artisan vendor:publish --tag=laravel-assets --ansi --force" 47 | ], 48 | "post-root-package-install": [ 49 | "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" 50 | ], 51 | "post-create-project-cmd": [ 52 | "@php artisan key:generate --ansi" 53 | ] 54 | }, 55 | "extra": { 56 | "laravel": { 57 | "dont-discover": [] 58 | } 59 | }, 60 | "config": { 61 | "optimize-autoloader": true, 62 | "preferred-install": "dist", 63 | "sort-packages": true 64 | }, 65 | "minimum-stability": "dev", 66 | "prefer-stable": true 67 | } 68 | -------------------------------------------------------------------------------- /app/Models/Company.php: -------------------------------------------------------------------------------- 1 | logo) ? asset('images/default.png') : $this->logo; 59 | } 60 | 61 | public function getFaStatusAttribute(): string 62 | { 63 | return companyStatus($this->status); 64 | } 65 | 66 | public function user(): BelongsTo 67 | { 68 | return $this->belongsTo(User::class, 'user_id'); 69 | } 70 | 71 | public function industry(): BelongsTo 72 | { 73 | return $this->belongsTo(Industry::class, 'industry_id'); 74 | } 75 | 76 | public function comments(): HasMany 77 | { 78 | return $this->hasMany(Comment::class, 'company_id'); 79 | } 80 | 81 | public function activeComments(): HasMany 82 | { 83 | return $this->hasMany(Comment::class, 'company_id') 84 | ->where('status', Comment::STATUS_ACTIVE) 85 | ->orderByDesc('created_at'); 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /app/Http/Controllers/Auth/RegisterController.php: -------------------------------------------------------------------------------- 1 | middleware('guest'); 42 | } 43 | 44 | public function showRegistrationForm() 45 | { 46 | abort(404); 47 | } 48 | 49 | /** 50 | * Get a validator for an incoming registration request. 51 | * 52 | * @param array $data 53 | * @return \Illuminate\Contracts\Validation\Validator 54 | */ 55 | protected function validator(array $data) 56 | { 57 | return Validator::make($data, [ 58 | 'username' => ['required', 'string', 'max:255', 'unique:users'], 59 | 'password' => ['required', 'string', 'min:8', 'confirmed'], 60 | ], [ 61 | 'username.unique' => 'این نام کاربری قبلا استفاده شده است', 62 | 'password.confirmed' => 'رمز عبور با یکدیگر مطابقت ندارد' 63 | ]); 64 | } 65 | 66 | /** 67 | * Create a new user instance after a valid registration. 68 | * 69 | * @param array $data 70 | * @return \App\Models\User 71 | */ 72 | protected function create(array $data) 73 | { 74 | return User::create([ 75 | 'username' => $data['username'], 76 | 'password' => Hash::make($data['password']) 77 | ]); 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /app/Models/Comment.php: -------------------------------------------------------------------------------- 1 | type); 70 | } 71 | 72 | public function getFaStatusAttribute(): string 73 | { 74 | return commentStatus($this->status); 75 | } 76 | 77 | public function getFaHireAttribute(): string 78 | { 79 | return $this->hire ? 'بله' : 'خیر'; 80 | } 81 | 82 | public function user(): BelongsTo 83 | { 84 | return $this->belongsTo(User::class, 'user_id'); 85 | } 86 | 87 | public function job(): BelongsTo 88 | { 89 | return $this->belongsTo(Job::class, 'job_id'); 90 | } 91 | 92 | public function company(): BelongsTo 93 | { 94 | return $this->belongsTo(Company::class, 'company_id'); 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /config/sanctum.php: -------------------------------------------------------------------------------- 1 | explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( 17 | '%s%s', 18 | 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', 19 | env('APP_URL') ? ','.parse_url(env('APP_URL'), PHP_URL_HOST) : '' 20 | ))), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Sanctum Guards 25 | |-------------------------------------------------------------------------- 26 | | 27 | | This array contains the authentication guards that will be checked when 28 | | Sanctum is trying to authenticate a request. If none of these guards 29 | | are able to authenticate the request, Sanctum will use the bearer 30 | | token that's present on an incoming request for authentication. 31 | | 32 | */ 33 | 34 | 'guard' => ['web'], 35 | 36 | /* 37 | |-------------------------------------------------------------------------- 38 | | Expiration Minutes 39 | |-------------------------------------------------------------------------- 40 | | 41 | | This value controls the number of minutes until an issued token will be 42 | | considered expired. If this value is null, personal access tokens do 43 | | not expire. This won't tweak the lifetime of first-party sessions. 44 | | 45 | */ 46 | 47 | 'expiration' => null, 48 | 49 | /* 50 | |-------------------------------------------------------------------------- 51 | | Sanctum Middleware 52 | |-------------------------------------------------------------------------- 53 | | 54 | | When authenticating your first-party SPA with Sanctum you may need to 55 | | customize some of the middleware Sanctum uses while processing the 56 | | request. You may change the middleware listed below as required. 57 | | 58 | */ 59 | 60 | 'middleware' => [ 61 | 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 62 | 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 63 | ], 64 | 65 | ]; 66 | -------------------------------------------------------------------------------- /config/filesystems.php: -------------------------------------------------------------------------------- 1 | env('FILESYSTEM_DISK', 'local'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Filesystem Disks 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure as many filesystem "disks" as you wish, and you 24 | | may even configure multiple disks of the same driver. Defaults have 25 | | been setup for each driver as an example of the required options. 26 | | 27 | | Supported Drivers: "local", "ftp", "sftp", "s3" 28 | | 29 | */ 30 | 31 | 'disks' => [ 32 | 33 | 'local' => [ 34 | 'driver' => 'local', 35 | 'root' => storage_path('app'), 36 | ], 37 | 38 | 'public' => [ 39 | 'driver' => 'local', 40 | 'root' => storage_path('app/public'), 41 | 'url' => env('APP_URL').'/storage', 42 | 'visibility' => 'public', 43 | ], 44 | 45 | 's3' => [ 46 | 'driver' => 's3', 47 | 'key' => env('AWS_ACCESS_KEY_ID'), 48 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 49 | 'region' => env('AWS_DEFAULT_REGION'), 50 | 'bucket' => env('AWS_BUCKET'), 51 | 'url' => env('AWS_URL'), 52 | 'endpoint' => env('AWS_ENDPOINT'), 53 | 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), 54 | ], 55 | 56 | ], 57 | 58 | /* 59 | |-------------------------------------------------------------------------- 60 | | Symbolic Links 61 | |-------------------------------------------------------------------------- 62 | | 63 | | Here you may configure the symbolic links that will be created when the 64 | | `storage:link` Artisan command is executed. The array keys should be 65 | | the locations of the links and the values should be their targets. 66 | | 67 | */ 68 | 69 | 'links' => [ 70 | public_path('storage') => storage_path('app/public'), 71 | ], 72 | 73 | ]; 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | COMPANY UX 3 |

4 | 5 |

6 | Latest Stable Version 7 | License 8 | License 9 |

10 | 11 |

12 | A repository for collecting the experiences of a company's user 13 |

14 | 15 |
16 | 17 | ## Cause of development 18 | 19 | This project continues the path of the `jobguys` website that we all know and know was closed, the purpose of 20 | developing this project is to be the voice of your experiences and opinions. 21 | >So, that we can have a more ideal society for all 22 | 23 | [more..](https://github.com/RaminNietzsche/jobguy/issues/6) 24 | 25 | ## Technologies 26 | * php (laravel) 27 | * mysql 28 | * javascript (jquery) 29 | * blade template 30 | 31 | 32 | # Installation 33 | 34 | * step 1) Clones the repository into a new directory. 35 | ```shell 36 | git clone https://github.com/arefSajjadi/companyux.git 37 | ``` 38 | * step 2) Go to clones directory. 39 | ```shell 40 | cd your_directory 41 | ``` 42 | * step 3) Update all dependency via [Composer](http://getcomposer.org/). 43 | ```shell 44 | composer update 45 | ``` 46 | * step 4) Configure your .env file, `you can use the .env.example as a guide ` 47 | ```shell 48 | cp .env.example .env 49 | ``` 50 | * step 5) Migrate all database structure into mysql via `artisan command` 51 | ```shell 52 | php artisan migrate 53 | ``` 54 | * step 6) Create some fake data 55 | via [laravel factories](https://laravel.com/docs/8.x/database-testing#factory-relationships) 56 | ```shell 57 | php artisan db:seed 58 | ``` 59 | Or for migrate and seeding. 60 | ```shell 61 | php artisan migrate:fresh --seed 62 | ``` 63 | * ### step 7) Now, Everything is ready to serve `:)` 64 | ```shell 65 | php artisan serve 66 | ``` 67 | 68 | ## TDD 69 | 70 | I am use laravel unit testing (TDD) on `test\feature` directory you can see it. 71 | > Some tips for (TDD) 72 | > * To run your tests, execute the `./vendor/bin/phpunit` or `php artisan test` command from your terminal 73 | > * Laravel is built with testing in mind. In fact ! support for testing with PHPUnit is included out of the box 74 | and a 75 | `phpunit.xml` file is already set up for your application. 76 | 77 | ## License 78 | 79 | The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). 80 | 81 | 82 | 83 | -------------------------------------------------------------------------------- /routes/web.php: -------------------------------------------------------------------------------- 1 | name('index'); 25 | 26 | Route::prefix('search')->group(function () { 27 | Route::get('/', [SearchController::class, 'suggestionSearch'])->name('search.suggestion'); 28 | Route::get('/result', [SearchController::class, 'searchResult'])->name('search.result'); 29 | }); 30 | 31 | Route::prefix('companies')->group(function () { 32 | Route::get('/', [CompanyController::class, 'index'])->name('companies.index'); 33 | Route::get('/{company}', [CompanyController::class, 'show'])->name('companies.show'); 34 | }); 35 | 36 | Route::middleware('auth')->group(function () { 37 | Route::prefix('profile')->group(function () { 38 | Route::get('/', [ProfileController::class, 'dashboard'])->name('profile.dashboard'); 39 | 40 | Route::prefix('companies')->group(function () { 41 | Route::get('/create', [CompanyController::class, 'create'])->name('companies.create'); 42 | Route::post('/store', [CompanyController::class, 'store'])->name('companies.store'); 43 | Route::delete('/{company}', [CompanyController::class, 'destroy'])->name('companies.destroy'); 44 | 45 | Route::prefix('{company}/comments')->group(function () { 46 | Route::get('/create', [CommentController::class, 'create'])->name('comments.create'); 47 | Route::post('/store', [CommentController::class, 'store'])->name('comments.store'); 48 | Route::patch('/{comment}', [CommentController::class, 'update'])->name('comments.update'); 49 | Route::delete('/{comment}', [CommentController::class, 'destroy'])->name('comments.destroy'); 50 | }); 51 | 52 | }); 53 | 54 | Route::get('/myCompanies', [CompanyController::class, 'myCompanies'])->name('companies.myCompanies'); 55 | 56 | Route::get('/comments', [CommentController::class, 'index'])->name('comments.index'); 57 | 58 | 59 | }); 60 | }); 61 | -------------------------------------------------------------------------------- /app/Http/Kernel.php: -------------------------------------------------------------------------------- 1 | 15 | */ 16 | protected $middleware = [ 17 | // \App\Http\Middleware\TrustHosts::class, 18 | \App\Http\Middleware\TrustProxies::class, 19 | \Fruitcake\Cors\HandleCors::class, 20 | \App\Http\Middleware\PreventRequestsDuringMaintenance::class, 21 | \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, 22 | \App\Http\Middleware\TrimStrings::class, 23 | \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, 24 | ]; 25 | 26 | /** 27 | * The application's route middleware groups. 28 | * 29 | * @var array> 30 | */ 31 | protected $middlewareGroups = [ 32 | 'web' => [ 33 | \App\Http\Middleware\EncryptCookies::class, 34 | \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, 35 | \Illuminate\Session\Middleware\StartSession::class, 36 | // \Illuminate\Session\Middleware\AuthenticateSession::class, 37 | \Illuminate\View\Middleware\ShareErrorsFromSession::class, 38 | \App\Http\Middleware\VerifyCsrfToken::class, 39 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 40 | ], 41 | 42 | 'api' => [ 43 | // \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class, 44 | 'throttle:api', 45 | \Illuminate\Routing\Middleware\SubstituteBindings::class, 46 | ], 47 | ]; 48 | 49 | /** 50 | * The application's route middleware. 51 | * 52 | * These middleware may be assigned to groups or used individually. 53 | * 54 | * @var array 55 | */ 56 | protected $routeMiddleware = [ 57 | 'auth' => \App\Http\Middleware\Authenticate::class, 58 | 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 59 | 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 60 | 'can' => \Illuminate\Auth\Middleware\Authorize::class, 61 | 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 62 | 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 63 | 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 64 | 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 65 | 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, 66 | ]; 67 | } 68 | -------------------------------------------------------------------------------- /database/seeders/IndustrySeeder.php: -------------------------------------------------------------------------------- 1 | insert([ 13 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'تبلیغات، بازاریابی و برندسازی'], 14 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'کامپیوتر، فناوری اطلاعات و اینترنت'], 15 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'تولید و صنایع'], 16 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'فروشگاهی'], 17 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'استاندارد و کنترل کیفیت'], 18 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'املاک و مستغلات'], 19 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'معماری و عمران'], 20 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'منابع انسانی'], 21 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'رسانه و انتشارات'], 22 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'آموزش، مدارس و دانشگاه ها'], 23 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'خدمات درمانی، پزشکی و سلامت'], 24 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'حمل و نقل، لاجستیک و انبارداری'], 25 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'کالای مصرفی و خوراکی'], 26 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'گردشگری و هتل ها'], 27 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'واردات و صادرات'], 28 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'مالی و اعتباری'], 29 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'مخابرات و ارتباطات'], 30 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'فرهنگی و ورزشی'], 31 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'غذا و رستوران ها'], 32 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'نفت و گاز'], 33 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'دسته بندی نشده'], 34 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'سازمان های مردم نهاد (NGO)'], 35 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'سرمایه گذاری و تحلیل کسب وکار'], 36 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'خودروسازی'], 37 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'وکالت و حقوقی'], 38 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'بیمه'], 39 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'کشاورزی'], 40 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'نیرو'], 41 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'بانکی'], 42 | ['created_at' => now(), 'updated_at' => now(), 'title' => 'دولتی'] 43 | ]); 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /config/queue.php: -------------------------------------------------------------------------------- 1 | env('QUEUE_CONNECTION', 'sync'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Queue Connections 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure the connection information for each server that 24 | | is used by your application. A default configuration has been added 25 | | for each back-end shipped with Laravel. You are free to add more. 26 | | 27 | | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", "null" 28 | | 29 | */ 30 | 31 | 'connections' => [ 32 | 33 | 'sync' => [ 34 | 'driver' => 'sync', 35 | ], 36 | 37 | 'database' => [ 38 | 'driver' => 'database', 39 | 'table' => 'jobs', 40 | 'queue' => 'default', 41 | 'retry_after' => 90, 42 | 'after_commit' => false, 43 | ], 44 | 45 | 'beanstalkd' => [ 46 | 'driver' => 'beanstalkd', 47 | 'host' => 'localhost', 48 | 'queue' => 'default', 49 | 'retry_after' => 90, 50 | 'block_for' => 0, 51 | 'after_commit' => false, 52 | ], 53 | 54 | 'sqs' => [ 55 | 'driver' => 'sqs', 56 | 'key' => env('AWS_ACCESS_KEY_ID'), 57 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 58 | 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), 59 | 'queue' => env('SQS_QUEUE', 'default'), 60 | 'suffix' => env('SQS_SUFFIX'), 61 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 62 | 'after_commit' => false, 63 | ], 64 | 65 | 'redis' => [ 66 | 'driver' => 'redis', 67 | 'connection' => 'default', 68 | 'queue' => env('REDIS_QUEUE', 'default'), 69 | 'retry_after' => 90, 70 | 'block_for' => null, 71 | 'after_commit' => false, 72 | ], 73 | 74 | ], 75 | 76 | /* 77 | |-------------------------------------------------------------------------- 78 | | Failed Queue Jobs 79 | |-------------------------------------------------------------------------- 80 | | 81 | | These options configure the behavior of failed queue job logging so you 82 | | can control which database and table are used to store the jobs that 83 | | have failed. You may change them to any database / table you wish. 84 | | 85 | */ 86 | 87 | 'failed' => [ 88 | 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), 89 | 'database' => env('DB_CONNECTION', 'mysql'), 90 | 'table' => 'failed_jobs', 91 | ], 92 | 93 | ]; 94 | -------------------------------------------------------------------------------- /app/Http/Controllers/CompanyController.php: -------------------------------------------------------------------------------- 1 | $breadcrumb, 26 | 'companies' => $companies 27 | ]); 28 | } 29 | 30 | public function myCompanies(): Factory|View|Application 31 | { 32 | $breadcrumb = breadcrumb( 33 | ['حساب کاربری', route('profile.dashboard')], 34 | ['لیست درخواست های افزودن شرکت'] 35 | ); 36 | 37 | $companies = UserFacade::companies(10); 38 | 39 | return view('companies.myCompanies', [ 40 | 'breadcrumb' => $breadcrumb, 41 | 'companies' => $companies 42 | ]); 43 | } 44 | 45 | public function create(): Factory|View|Application 46 | { 47 | $breadcrumb = breadcrumb( 48 | ['حساب کاربری', route('profile.dashboard')], 49 | ['درخواست ثبت شرکت'] 50 | ); 51 | 52 | $industries = IndustryFacade::index(); 53 | 54 | return view('companies.create', [ 55 | 'breadcrumb' => $breadcrumb, 56 | 'industries' => $industries, 57 | ]); 58 | } 59 | 60 | public function store(StoreCompanyRequest $request): RedirectResponse 61 | { 62 | $data = [ 63 | 'establishment_at' => $request->establishment_at, 64 | 'industry_id' => $request->industry_id, 65 | 'name' => $request->name, 66 | 'brand' => $request->brand, 67 | 'telephone' => $request->telephone, 68 | 'url' => $request->url, 69 | 'employees' => $request->employees, 70 | ]; 71 | 72 | $company = CompanyFacade::store(Auth::user(), $data); 73 | 74 | session()->flash('company_store', ['title' => $company->name]); 75 | 76 | return redirect()->route('companies.myCompanies'); 77 | } 78 | 79 | public function show(Company $company): Factory|View|Application 80 | { 81 | if ($company->status !== Company::STATUS_ACTIVE) 82 | abort(404); 83 | 84 | $breadcrumb = breadcrumb( 85 | ['شرکت ها', route('companies.index')], 86 | [$company->name] 87 | ); 88 | 89 | return view('companies.show', [ 90 | 'breadcrumb' => $breadcrumb, 91 | 'company' => $company 92 | ]); 93 | } 94 | 95 | public function destroy(company $company): RedirectResponse 96 | { 97 | $this->authorize('delete', $company); 98 | 99 | if ($company->activeComments()->count()) 100 | abort(401); 101 | 102 | CompanyFacade::delete($company); 103 | 104 | session()->flash('company_destroy'); 105 | 106 | return back(); 107 | } 108 | } 109 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/show/sections/companyComments.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | @forelse($company->activeComments as $comment) 6 |
7 |
8 |
10 |
11 |
12 |

13 | {{$comment->display_name}} 14 | @if(auth()->check() and auth()->user()->id === $comment->user_id) 15 | - 16 | 18 | ویرایش 19 | 20 | @endif 21 |

22 |

{!! $comment->comment !!}

23 |
24 |
25 |
    26 |
  • 27 | تاریخ ثبت : 28 | {{convert_date($comment->created_at, true)}} 29 |
  • 30 |
  • 31 | عنوان شغلی : 32 | {{$comment->job->title}} 33 |
  • 34 |
  • 35 | نوع همکاری : 36 | {{$comment->fa_type}} 37 |
  • 38 |
  • 39 | حقوق درخواستی : 40 | {{price($comment->requested_wage)}} 41 |
  • 42 |
  • 43 | حقوق دریافتی : 44 | {{price($comment->received_wage)}} 45 |
  • 46 |
47 |
48 |
49 |
50 |
51 |
52 | @empty 53 | @include('layouts.companies.show.sections.emptyComments') 54 | @endforelse 55 |
56 |
57 |
58 |
59 | -------------------------------------------------------------------------------- /config/cache.php: -------------------------------------------------------------------------------- 1 | env('CACHE_DRIVER', 'file'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Cache Stores 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here you may define all of the cache "stores" for your application as 26 | | well as their drivers. You may even define multiple stores for the 27 | | same cache driver to group types of items stored in your caches. 28 | | 29 | | Supported drivers: "apc", "array", "database", "file", 30 | | "memcached", "redis", "dynamodb", "octane", "null" 31 | | 32 | */ 33 | 34 | 'stores' => [ 35 | 36 | 'apc' => [ 37 | 'driver' => 'apc', 38 | ], 39 | 40 | 'array' => [ 41 | 'driver' => 'array', 42 | 'serialize' => false, 43 | ], 44 | 45 | 'database' => [ 46 | 'driver' => 'database', 47 | 'table' => 'cache', 48 | 'connection' => null, 49 | 'lock_connection' => null, 50 | ], 51 | 52 | 'file' => [ 53 | 'driver' => 'file', 54 | 'path' => storage_path('framework/cache/data'), 55 | ], 56 | 57 | 'memcached' => [ 58 | 'driver' => 'memcached', 59 | 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), 60 | 'sasl' => [ 61 | env('MEMCACHED_USERNAME'), 62 | env('MEMCACHED_PASSWORD'), 63 | ], 64 | 'options' => [ 65 | // Memcached::OPT_CONNECT_TIMEOUT => 2000, 66 | ], 67 | 'servers' => [ 68 | [ 69 | 'host' => env('MEMCACHED_HOST', '127.0.0.1'), 70 | 'port' => env('MEMCACHED_PORT', 11211), 71 | 'weight' => 100, 72 | ], 73 | ], 74 | ], 75 | 76 | 'redis' => [ 77 | 'driver' => 'redis', 78 | 'connection' => 'cache', 79 | 'lock_connection' => 'default', 80 | ], 81 | 82 | 'dynamodb' => [ 83 | 'driver' => 'dynamodb', 84 | 'key' => env('AWS_ACCESS_KEY_ID'), 85 | 'secret' => env('AWS_SECRET_ACCESS_KEY'), 86 | 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), 87 | 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), 88 | 'endpoint' => env('DYNAMODB_ENDPOINT'), 89 | ], 90 | 91 | 'octane' => [ 92 | 'driver' => 'octane', 93 | ], 94 | 95 | ], 96 | 97 | /* 98 | |-------------------------------------------------------------------------- 99 | | Cache Key Prefix 100 | |-------------------------------------------------------------------------- 101 | | 102 | | When utilizing a RAM based store such as APC or Memcached, there might 103 | | be other applications utilizing the same cache. So, we'll specify a 104 | | value to get prefixed to all our keys so we can avoid collisions. 105 | | 106 | */ 107 | 108 | 'prefix' => env('CACHE_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_cache'), 109 | 110 | ]; 111 | -------------------------------------------------------------------------------- /app/Http/Controllers/CommentController.php: -------------------------------------------------------------------------------- 1 | $breadcrumb, 33 | 'jobs' => $jobs, 34 | 'comments' => $comments 35 | ]); 36 | } 37 | 38 | public function create(Company $company): Factory|View|Application 39 | { 40 | $breadcrumb = breadcrumb( 41 | ['حساب کاربری', route('profile.dashboard')], 42 | ['شرکت ها', route('companies.index')], 43 | [$company->name, route('companies.show', $company->id)], 44 | ['ثبت تجربه'], 45 | ); 46 | 47 | $jobs = JobFacade::jobs(); 48 | 49 | return view('comments.create', [ 50 | 'breadcrumb' => $breadcrumb, 51 | 'jobs' => $jobs, 52 | 'company' => $company 53 | ]); 54 | } 55 | 56 | public function store(Company $company, StoreCommentRequest $request): RedirectResponse 57 | { 58 | $data = [ 59 | 'job_id' => $request->job_id, 60 | 'company_id' => $company->id, 61 | 'display_name' => $request->display_name, 62 | 'comment' => $request->comment, 63 | 'type' => $request->type, 64 | 'hire' => (bool)$request->hire, 65 | 'requested_wage' => intval(preg_replace('/\D/', '', $request->requested_wage)), 66 | 'received_wage' => intval(preg_replace('/\D/', '', $request->received_wage)) 67 | ]; 68 | 69 | CommentFacade::store(Auth::user(), $company, $data); 70 | 71 | session()->flash('comment_store'); 72 | 73 | return redirect()->route('comments.index'); 74 | } 75 | 76 | public function update(UpdateCommentRequest $request, Company $company, Comment $comment): RedirectResponse 77 | { 78 | $this->authorize('update', $comment); 79 | 80 | if ($comment->company_id != $company->id) 81 | abort(401); 82 | 83 | $data = [ 84 | 'job_id' => $request->job_id, 85 | 'display_name' => $request->display_name, 86 | 'comment' => $request->comment, 87 | 'status' => Comment::STATUS_WAITING, 88 | 'type' => $request->type, 89 | 'hire' => (bool)$request->hire, 90 | 'requested_wage' => intval(preg_replace('/\D/', '', $request->requested_wage)), 91 | 'received_wage' => intval(preg_replace('/\D/', '', $request->received_wage)) 92 | ]; 93 | 94 | CommentFacade::update($comment, $data); 95 | 96 | session()->flash('comment_update'); 97 | 98 | return back(); 99 | } 100 | 101 | public function destroy(Company $company, Comment $comment): RedirectResponse 102 | { 103 | $this->authorize('delete', $comment); 104 | 105 | if ($comment->company_id !== $company->id) 106 | abort(401); 107 | 108 | CommentFacade::delete($comment); 109 | 110 | session()->flash('comment_destroy'); 111 | 112 | return back(); 113 | } 114 | } 115 | -------------------------------------------------------------------------------- /config/mail.php: -------------------------------------------------------------------------------- 1 | env('MAIL_MAILER', 'smtp'), 17 | 18 | /* 19 | |-------------------------------------------------------------------------- 20 | | Mailer Configurations 21 | |-------------------------------------------------------------------------- 22 | | 23 | | Here you may configure all of the mailers used by your application plus 24 | | their respective settings. Several examples have been configured for 25 | | you and you are free to add your own as your application requires. 26 | | 27 | | Laravel supports a variety of mail "transport" drivers to be used while 28 | | sending an e-mail. You will specify which one you are using for your 29 | | mailers below. You are free to add additional mailers as required. 30 | | 31 | | Supported: "smtp", "sendmail", "mailgun", "ses", 32 | | "postmark", "log", "array", "failover" 33 | | 34 | */ 35 | 36 | 'mailers' => [ 37 | 'smtp' => [ 38 | 'transport' => 'smtp', 39 | 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), 40 | 'port' => env('MAIL_PORT', 587), 41 | 'encryption' => env('MAIL_ENCRYPTION', 'tls'), 42 | 'username' => env('MAIL_USERNAME'), 43 | 'password' => env('MAIL_PASSWORD'), 44 | 'timeout' => null, 45 | ], 46 | 47 | 'ses' => [ 48 | 'transport' => 'ses', 49 | ], 50 | 51 | 'mailgun' => [ 52 | 'transport' => 'mailgun', 53 | ], 54 | 55 | 'postmark' => [ 56 | 'transport' => 'postmark', 57 | ], 58 | 59 | 'sendmail' => [ 60 | 'transport' => 'sendmail', 61 | 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -t -i'), 62 | ], 63 | 64 | 'log' => [ 65 | 'transport' => 'log', 66 | 'channel' => env('MAIL_LOG_CHANNEL'), 67 | ], 68 | 69 | 'array' => [ 70 | 'transport' => 'array', 71 | ], 72 | 73 | 'failover' => [ 74 | 'transport' => 'failover', 75 | 'mailers' => [ 76 | 'smtp', 77 | 'log', 78 | ], 79 | ], 80 | ], 81 | 82 | /* 83 | |-------------------------------------------------------------------------- 84 | | Global "From" Address 85 | |-------------------------------------------------------------------------- 86 | | 87 | | You may wish for all e-mails sent by your application to be sent from 88 | | the same address. Here, you may specify a name and address that is 89 | | used globally for all e-mails that are sent by your application. 90 | | 91 | */ 92 | 93 | 'from' => [ 94 | 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), 95 | 'name' => env('MAIL_FROM_NAME', 'Example'), 96 | ], 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Markdown Mail Settings 101 | |-------------------------------------------------------------------------- 102 | | 103 | | If you are using Markdown based email rendering, you may configure your 104 | | theme and component paths here, allowing you to customize the design 105 | | of the emails. Or, you may simply stick with the Laravel defaults! 106 | | 107 | */ 108 | 109 | 'markdown' => [ 110 | 'theme' => 'default', 111 | 112 | 'paths' => [ 113 | resource_path('views/vendor/mail'), 114 | ], 115 | ], 116 | 117 | ]; 118 | -------------------------------------------------------------------------------- /resources/views/layouts/companies/companiesTable.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

4 | 5 | لیست تمامی درخواست های شما - 6 | درخواست افزودن شرکت 7 |

8 |
9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | @foreach($companies as $company) 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 52 | 73 | 74 | @endforeach 75 | 76 |
#نامبرندتلقنوبسایتتعداد کارمندانسال تاسیسحوزه فعالیتتعداد نظراتوضعیتتنظیمات
{{loopWithPaginate($loop, $companies)}}{{$company->name}}{{$company->brand}}{{$company->telephone}}{{$company->url}}{{$company->employees}}{{$company->establishment_at}}{{$company->industry->title}}{{$company->activeComments()->count()}} 39 | @switch($company->status) 40 | @case(\App\Models\Company::STATUS_ACTIVE) @php($textColor = 'text-success') 41 | @break 42 | @case(\App\Models\Company::STATUS_WAITING) @php($textColor = 'text-warning') 43 | @break 44 | @case(\App\Models\Company::STATUS_REJECT) @php($textColor = 'text-danger') 45 | @break 46 | @default @php($textColor = 'text-warning') 47 | @endswitch 48 | 49 | {{$company->fa_status}} 50 | 51 | 53 |
54 | @if ($company->status === \App\Models\Company::STATUS_REJECT and !empty($company->reason)) 55 | 57 | 58 | 59 | @include('layouts.companies.rejectReasonModal') 60 | @endif 61 | 64 | 65 | 66 | @includeWhen($company and !$company->activeComments()->count(), 'layouts.companies.deleteCompaniesModal') 67 | 69 | 70 | 71 |
72 |
77 |
78 |
79 | -------------------------------------------------------------------------------- /config/auth.php: -------------------------------------------------------------------------------- 1 | [ 17 | 'guard' => 'web', 18 | 'passwords' => 'users', 19 | ], 20 | 21 | /* 22 | |-------------------------------------------------------------------------- 23 | | Authentication Guards 24 | |-------------------------------------------------------------------------- 25 | | 26 | | Next, you may define every authentication guard for your application. 27 | | Of course, a great default configuration has been defined for you 28 | | here which uses session storage and the Eloquent user provider. 29 | | 30 | | All authentication drivers have a user provider. This defines how the 31 | | users are actually retrieved out of your database or other storage 32 | | mechanisms used by this application to persist your user's data. 33 | | 34 | | Supported: "session" 35 | | 36 | */ 37 | 38 | 'guards' => [ 39 | 'web' => [ 40 | 'driver' => 'session', 41 | 'provider' => 'users', 42 | ], 43 | ], 44 | 45 | /* 46 | |-------------------------------------------------------------------------- 47 | | User Providers 48 | |-------------------------------------------------------------------------- 49 | | 50 | | All authentication drivers have a user provider. This defines how the 51 | | users are actually retrieved out of your database or other storage 52 | | mechanisms used by this application to persist your user's data. 53 | | 54 | | If you have multiple user tables or models you may configure multiple 55 | | sources which represent each model / table. These sources may then 56 | | be assigned to any extra authentication guards you have defined. 57 | | 58 | | Supported: "database", "eloquent" 59 | | 60 | */ 61 | 62 | 'providers' => [ 63 | 'users' => [ 64 | 'driver' => 'eloquent', 65 | 'model' => App\Models\User::class, 66 | ], 67 | 68 | // 'users' => [ 69 | // 'driver' => 'database', 70 | // 'table' => 'users', 71 | // ], 72 | ], 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Resetting Passwords 77 | |-------------------------------------------------------------------------- 78 | | 79 | | You may specify multiple password reset configurations if you have more 80 | | than one user table or model in the application and you want to have 81 | | separate password reset settings based on the specific user types. 82 | | 83 | | The expire time is the number of minutes that each reset token will be 84 | | considered valid. This security feature keeps tokens short-lived so 85 | | they have less time to be guessed. You may change this as needed. 86 | | 87 | */ 88 | 89 | 'passwords' => [ 90 | 'users' => [ 91 | 'provider' => 'users', 92 | 'table' => 'password_resets', 93 | 'expire' => 60, 94 | 'throttle' => 60, 95 | ], 96 | ], 97 | 98 | /* 99 | |-------------------------------------------------------------------------- 100 | | Password Confirmation Timeout 101 | |-------------------------------------------------------------------------- 102 | | 103 | | Here you may define the amount of seconds before a password confirmation 104 | | times out and the user is prompted to re-enter their password via the 105 | | confirmation screen. By default, the timeout lasts for three hours. 106 | | 107 | */ 108 | 109 | 'password_timeout' => 10800, 110 | 111 | ]; 112 | -------------------------------------------------------------------------------- /config/logging.php: -------------------------------------------------------------------------------- 1 | env('LOG_CHANNEL', 'stack'), 21 | 22 | /* 23 | |-------------------------------------------------------------------------- 24 | | Deprecations Log Channel 25 | |-------------------------------------------------------------------------- 26 | | 27 | | This option controls the log channel that should be used to log warnings 28 | | regarding deprecated PHP and library features. This allows you to get 29 | | your application ready for upcoming major versions of dependencies. 30 | | 31 | */ 32 | 33 | 'deprecations' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), 34 | 35 | /* 36 | |-------------------------------------------------------------------------- 37 | | Log Channels 38 | |-------------------------------------------------------------------------- 39 | | 40 | | Here you may configure the log channels for your application. Out of 41 | | the box, Laravel uses the Monolog PHP logging library. This gives 42 | | you a variety of powerful log handlers / formatters to utilize. 43 | | 44 | | Available Drivers: "single", "daily", "slack", "syslog", 45 | | "errorlog", "monolog", 46 | | "custom", "stack" 47 | | 48 | */ 49 | 50 | 'channels' => [ 51 | 'stack' => [ 52 | 'driver' => 'stack', 53 | 'channels' => ['single'], 54 | 'ignore_exceptions' => false, 55 | ], 56 | 57 | 'single' => [ 58 | 'driver' => 'single', 59 | 'path' => storage_path('logs/laravel.log'), 60 | 'level' => env('LOG_LEVEL', 'debug'), 61 | ], 62 | 63 | 'daily' => [ 64 | 'driver' => 'daily', 65 | 'path' => storage_path('logs/laravel.log'), 66 | 'level' => env('LOG_LEVEL', 'debug'), 67 | 'days' => 14, 68 | ], 69 | 70 | 'slack' => [ 71 | 'driver' => 'slack', 72 | 'url' => env('LOG_SLACK_WEBHOOK_URL'), 73 | 'username' => 'Laravel Log', 74 | 'emoji' => ':boom:', 75 | 'level' => env('LOG_LEVEL', 'critical'), 76 | ], 77 | 78 | 'papertrail' => [ 79 | 'driver' => 'monolog', 80 | 'level' => env('LOG_LEVEL', 'debug'), 81 | 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), 82 | 'handler_with' => [ 83 | 'host' => env('PAPERTRAIL_URL'), 84 | 'port' => env('PAPERTRAIL_PORT'), 85 | 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), 86 | ], 87 | ], 88 | 89 | 'stderr' => [ 90 | 'driver' => 'monolog', 91 | 'level' => env('LOG_LEVEL', 'debug'), 92 | 'handler' => StreamHandler::class, 93 | 'formatter' => env('LOG_STDERR_FORMATTER'), 94 | 'with' => [ 95 | 'stream' => 'php://stderr', 96 | ], 97 | ], 98 | 99 | 'syslog' => [ 100 | 'driver' => 'syslog', 101 | 'level' => env('LOG_LEVEL', 'debug'), 102 | ], 103 | 104 | 'errorlog' => [ 105 | 'driver' => 'errorlog', 106 | 'level' => env('LOG_LEVEL', 'debug'), 107 | ], 108 | 109 | 'null' => [ 110 | 'driver' => 'monolog', 111 | 'handler' => NullHandler::class, 112 | ], 113 | 114 | 'emergency' => [ 115 | 'path' => storage_path('logs/laravel.log'), 116 | ], 117 | ], 118 | 119 | ]; 120 | -------------------------------------------------------------------------------- /resources/views/layouts/comments/commentsTable.blade.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |

4 | 5 | لیست تمامی تجربه های شما 6 |

7 |
8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | @foreach($comments as $comment) 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 52 | 53 | 78 | 79 | @endforeach 80 | 81 |
#شرکتنام نمایشیحقوق درخواستیحقوق دریافتیعنوان شغلینوع همکاریاستخدام شده اید؟نظروضعیتتاریخ ثبتتنظیمات
{{loopWithPaginate($loop, $comments)}}{{$comment->company->name}}{{$comment->display_name}}{{number_format($comment->requested_wage)}}{{number_format($comment->received_wage)}}{{$comment->job->title}}{{$comment->fa_type}}{{$comment->fa_hire}}{!! substr($comment->comment, 0, 130) . ' ...' !!} 39 | @switch($comment->status) 40 | @case(\App\Models\Comment::STATUS_ACTIVE) @php($textColor = 'text-success') 41 | @break 42 | @case(\App\Models\Comment::STATUS_WAITING) @php($textColor = 'text-warning') 43 | @break 44 | @case(\App\Models\Comment::STATUS_REJECT) @php($textColor = 'text-danger') 45 | @break 46 | @default @php($textColor = 'text-warning') 47 | @endswitch 48 | 49 | {{$comment->fa_status}} 50 | 51 | {{convert_date($comment->created_at, true)}} 54 |
55 | @if ($comment->status === \App\Models\Comment::STATUS_REJECT and !empty($comment->reason)) 56 | 58 | 59 | 60 | @include('layouts.comments.rejectReasonModal') 61 | @endif 62 | 64 | 65 | 66 | @includeWhen($comment, 'layouts.comments.deleteCommentsModal') 67 | 69 | 70 | 71 | @includeWhen($comment, 'comments.editCommentsModal') 72 | 74 | 75 | 76 |
77 |
82 |
83 |
84 | -------------------------------------------------------------------------------- /resources/views/companies/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('profile.index') 2 | 3 | @section('card-header') 4 |
5 |
6 | 7 | درخواست افزودن شرکت 8 |
9 |
10 | @endsection 11 | 12 | @section('card-body') 13 |
14 |
15 |
16 | @csrf 17 |
18 | 19 |
20 |
21 | 22 | 23 |
24 |
25 | 26 |
27 |
28 | 29 | 30 |
31 |
32 | 33 |
34 |
35 | 37 | 38 |
39 | 40 | مثال : 41 | 021xxxxx 42 | 43 |
44 | 45 |
46 |
47 | 48 | 49 |
50 | مثال : companyux.com 51 |
52 | 53 |
54 |
55 | 57 | 58 |
59 |
60 | 61 |
62 |
63 | 65 | 66 |
67 | مثال : 1378 68 |
69 | 70 |
71 |
72 | 78 | 79 |
80 |
81 | 82 |
83 | 84 |
85 |
86 |
87 |
88 |
89 | @endsection 90 | 91 | @section('scripts') 92 | @include('layouts.plugins.validateScript') 93 | @endsection 94 | -------------------------------------------------------------------------------- /resources/views/comments/create.blade.php: -------------------------------------------------------------------------------- 1 | @extends('profile.index') 2 | 3 | @section('card-header') 4 |
5 |
6 | 7 | ثبت تجربه 8 |
9 |
10 | @endsection 11 | 12 | @section('card-body') 13 |
14 |
15 |
17 | @csrf 18 |
19 | 20 |
21 |
22 | 24 | 25 |
26 |
27 | 28 |
29 |
30 | 32 | 33 |
34 |
35 | 36 |
37 |
38 | 40 | 41 |
42 |
43 | 44 |
45 |
46 | 51 | 52 |
53 |
54 | 55 |
56 |
57 | 63 | 64 |
65 |
66 | 67 |
68 |
69 | 72 | 73 |
74 |
75 | 76 |
77 |
78 | 80 | 81 |
82 |
83 | 84 |
85 | 86 |
87 |
88 |
89 |
90 |
91 | @endsection 92 | 93 | @section('scripts') 94 | @include('layouts.plugins.inputMaskScript') 95 | @include('layouts.plugins.validateScript') 96 | @endsection 97 | -------------------------------------------------------------------------------- /resources/views/comments/editCommentsModal.blade.php: -------------------------------------------------------------------------------- 1 | 2 | 87 | -------------------------------------------------------------------------------- /config/database.php: -------------------------------------------------------------------------------- 1 | env('DB_CONNECTION', 'mysql'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Database Connections 23 | |-------------------------------------------------------------------------- 24 | | 25 | | Here are each of the database connections setup for your application. 26 | | Of course, examples of configuring each database platform that is 27 | | supported by Laravel is shown below to make development simple. 28 | | 29 | | 30 | | All database work in Laravel is done through the PHP PDO facilities 31 | | so make sure you have the driver for your particular database of 32 | | choice installed on your machine before you begin development. 33 | | 34 | */ 35 | 36 | 'connections' => [ 37 | 38 | 'sqlite' => [ 39 | 'driver' => 'sqlite', 40 | 'url' => env('DATABASE_URL'), 41 | 'database' => env('DB_DATABASE', database_path('database.sqlite')), 42 | 'prefix' => '', 43 | 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), 44 | ], 45 | 46 | 'mysql' => [ 47 | 'driver' => 'mysql', 48 | 'url' => env('DATABASE_URL'), 49 | 'host' => env('DB_HOST', '127.0.0.1'), 50 | 'port' => env('DB_PORT', '3306'), 51 | 'database' => env('DB_DATABASE', 'forge'), 52 | 'username' => env('DB_USERNAME', 'forge'), 53 | 'password' => env('DB_PASSWORD', ''), 54 | 'unix_socket' => env('DB_SOCKET', ''), 55 | 'charset' => 'utf8mb4', 56 | 'collation' => 'utf8mb4_unicode_ci', 57 | 'prefix' => '', 58 | 'prefix_indexes' => true, 59 | 'strict' => true, 60 | 'engine' => null, 61 | 'options' => extension_loaded('pdo_mysql') ? array_filter([ 62 | PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), 63 | ]) : [], 64 | ], 65 | 66 | 'pgsql' => [ 67 | 'driver' => 'pgsql', 68 | 'url' => env('DATABASE_URL'), 69 | 'host' => env('DB_HOST', '127.0.0.1'), 70 | 'port' => env('DB_PORT', '5432'), 71 | 'database' => env('DB_DATABASE', 'forge'), 72 | 'username' => env('DB_USERNAME', 'forge'), 73 | 'password' => env('DB_PASSWORD', ''), 74 | 'charset' => 'utf8', 75 | 'prefix' => '', 76 | 'prefix_indexes' => true, 77 | 'search_path' => 'public', 78 | 'sslmode' => 'prefer', 79 | ], 80 | 81 | 'sqlsrv' => [ 82 | 'driver' => 'sqlsrv', 83 | 'url' => env('DATABASE_URL'), 84 | 'host' => env('DB_HOST', 'localhost'), 85 | 'port' => env('DB_PORT', '1433'), 86 | 'database' => env('DB_DATABASE', 'forge'), 87 | 'username' => env('DB_USERNAME', 'forge'), 88 | 'password' => env('DB_PASSWORD', ''), 89 | 'charset' => 'utf8', 90 | 'prefix' => '', 91 | 'prefix_indexes' => true, 92 | ], 93 | 94 | ], 95 | 96 | /* 97 | |-------------------------------------------------------------------------- 98 | | Migration Repository Table 99 | |-------------------------------------------------------------------------- 100 | | 101 | | This table keeps track of all the migrations that have already run for 102 | | your application. Using this information, we can determine which of 103 | | the migrations on disk haven't actually been run in the database. 104 | | 105 | */ 106 | 107 | 'migrations' => 'migrations', 108 | 109 | /* 110 | |-------------------------------------------------------------------------- 111 | | Redis Databases 112 | |-------------------------------------------------------------------------- 113 | | 114 | | Redis is an open source, fast, and advanced key-value store that also 115 | | provides a richer body of commands than a typical key-value system 116 | | such as APC or Memcached. Laravel makes it easy to dig right in. 117 | | 118 | */ 119 | 120 | 'redis' => [ 121 | 122 | 'client' => env('REDIS_CLIENT', 'phpredis'), 123 | 124 | 'options' => [ 125 | 'cluster' => env('REDIS_CLUSTER', 'redis'), 126 | 'prefix' => env('REDIS_PREFIX', Str::slug(env('APP_NAME', 'laravel'), '_').'_database_'), 127 | ], 128 | 129 | 'default' => [ 130 | 'url' => env('REDIS_URL'), 131 | 'host' => env('REDIS_HOST', '127.0.0.1'), 132 | 'password' => env('REDIS_PASSWORD'), 133 | 'port' => env('REDIS_PORT', '6379'), 134 | 'database' => env('REDIS_DB', '0'), 135 | ], 136 | 137 | 'cache' => [ 138 | 'url' => env('REDIS_URL'), 139 | 'host' => env('REDIS_HOST', '127.0.0.1'), 140 | 'password' => env('REDIS_PASSWORD'), 141 | 'port' => env('REDIS_PORT', '6379'), 142 | 'database' => env('REDIS_CACHE_DB', '1'), 143 | ], 144 | 145 | ], 146 | 147 | ]; 148 | -------------------------------------------------------------------------------- /config/session.php: -------------------------------------------------------------------------------- 1 | env('SESSION_DRIVER', 'file'), 22 | 23 | /* 24 | |-------------------------------------------------------------------------- 25 | | Session Lifetime 26 | |-------------------------------------------------------------------------- 27 | | 28 | | Here you may specify the number of minutes that you wish the session 29 | | to be allowed to remain idle before it expires. If you want them 30 | | to immediately expire on the browser closing, set that option. 31 | | 32 | */ 33 | 34 | 'lifetime' => env('SESSION_LIFETIME', 120), 35 | 36 | 'expire_on_close' => false, 37 | 38 | /* 39 | |-------------------------------------------------------------------------- 40 | | Session Encryption 41 | |-------------------------------------------------------------------------- 42 | | 43 | | This option allows you to easily specify that all of your session data 44 | | should be encrypted before it is stored. All encryption will be run 45 | | automatically by Laravel and you can use the Session like normal. 46 | | 47 | */ 48 | 49 | 'encrypt' => false, 50 | 51 | /* 52 | |-------------------------------------------------------------------------- 53 | | Session File Location 54 | |-------------------------------------------------------------------------- 55 | | 56 | | When using the native session driver, we need a location where session 57 | | files may be stored. A default has been set for you but a different 58 | | location may be specified. This is only needed for file sessions. 59 | | 60 | */ 61 | 62 | 'files' => storage_path('framework/sessions'), 63 | 64 | /* 65 | |-------------------------------------------------------------------------- 66 | | Session Database Connection 67 | |-------------------------------------------------------------------------- 68 | | 69 | | When using the "database" or "redis" session drivers, you may specify a 70 | | connection that should be used to manage these sessions. This should 71 | | correspond to a connection in your database configuration options. 72 | | 73 | */ 74 | 75 | 'connection' => env('SESSION_CONNECTION'), 76 | 77 | /* 78 | |-------------------------------------------------------------------------- 79 | | Session Database Table 80 | |-------------------------------------------------------------------------- 81 | | 82 | | When using the "database" session driver, you may specify the table we 83 | | should use to manage the sessions. Of course, a sensible default is 84 | | provided for you; however, you are free to change this as needed. 85 | | 86 | */ 87 | 88 | 'table' => 'sessions', 89 | 90 | /* 91 | |-------------------------------------------------------------------------- 92 | | Session Cache Store 93 | |-------------------------------------------------------------------------- 94 | | 95 | | While using one of the framework's cache driven session backends you may 96 | | list a cache store that should be used for these sessions. This value 97 | | must match with one of the application's configured cache "stores". 98 | | 99 | | Affects: "apc", "dynamodb", "memcached", "redis" 100 | | 101 | */ 102 | 103 | 'store' => env('SESSION_STORE'), 104 | 105 | /* 106 | |-------------------------------------------------------------------------- 107 | | Session Sweeping Lottery 108 | |-------------------------------------------------------------------------- 109 | | 110 | | Some session drivers must manually sweep their storage location to get 111 | | rid of old sessions from storage. Here are the chances that it will 112 | | happen on a given request. By default, the odds are 2 out of 100. 113 | | 114 | */ 115 | 116 | 'lottery' => [2, 100], 117 | 118 | /* 119 | |-------------------------------------------------------------------------- 120 | | Session Cookie Name 121 | |-------------------------------------------------------------------------- 122 | | 123 | | Here you may change the name of the cookie used to identify a session 124 | | instance by ID. The name specified here will get used every time a 125 | | new session cookie is created by the framework for every driver. 126 | | 127 | */ 128 | 129 | 'cookie' => env( 130 | 'SESSION_COOKIE', 131 | Str::slug(env('APP_NAME', 'laravel'), '_').'_session' 132 | ), 133 | 134 | /* 135 | |-------------------------------------------------------------------------- 136 | | Session Cookie Path 137 | |-------------------------------------------------------------------------- 138 | | 139 | | The session cookie path determines the path for which the cookie will 140 | | be regarded as available. Typically, this will be the root path of 141 | | your application but you are free to change this when necessary. 142 | | 143 | */ 144 | 145 | 'path' => '/', 146 | 147 | /* 148 | |-------------------------------------------------------------------------- 149 | | Session Cookie Domain 150 | |-------------------------------------------------------------------------- 151 | | 152 | | Here you may change the domain of the cookie used to identify a session 153 | | in your application. This will determine which domains the cookie is 154 | | available to in your application. A sensible default has been set. 155 | | 156 | */ 157 | 158 | 'domain' => env('SESSION_DOMAIN'), 159 | 160 | /* 161 | |-------------------------------------------------------------------------- 162 | | HTTPS Only Cookies 163 | |-------------------------------------------------------------------------- 164 | | 165 | | By setting this option to true, session cookies will only be sent back 166 | | to the server if the browser has a HTTPS connection. This will keep 167 | | the cookie from being sent to you when it can't be done securely. 168 | | 169 | */ 170 | 171 | 'secure' => env('SESSION_SECURE_COOKIE'), 172 | 173 | /* 174 | |-------------------------------------------------------------------------- 175 | | HTTP Access Only 176 | |-------------------------------------------------------------------------- 177 | | 178 | | Setting this value to true will prevent JavaScript from accessing the 179 | | value of the cookie and the cookie will only be accessible through 180 | | the HTTP protocol. You are free to modify this option if needed. 181 | | 182 | */ 183 | 184 | 'http_only' => true, 185 | 186 | /* 187 | |-------------------------------------------------------------------------- 188 | | Same-Site Cookies 189 | |-------------------------------------------------------------------------- 190 | | 191 | | This option determines how your cookies behave when cross-site requests 192 | | take place, and can be used to mitigate CSRF attacks. By default, we 193 | | will set this value to "lax" since this is a secure default value. 194 | | 195 | | Supported: "lax", "strict", "none", null 196 | | 197 | */ 198 | 199 | 'same_site' => 'lax', 200 | 201 | ]; 202 | -------------------------------------------------------------------------------- /config/app.php: -------------------------------------------------------------------------------- 1 | env('APP_NAME', 'Laravel'), 19 | 20 | /* 21 | |-------------------------------------------------------------------------- 22 | | Application Environment 23 | |-------------------------------------------------------------------------- 24 | | 25 | | This value determines the "environment" your application is currently 26 | | running in. This may determine how you prefer to configure various 27 | | services the application utilizes. Set this in your ".env" file. 28 | | 29 | */ 30 | 31 | 'env' => env('APP_ENV', 'production'), 32 | 33 | /* 34 | |-------------------------------------------------------------------------- 35 | | Application Debug Mode 36 | |-------------------------------------------------------------------------- 37 | | 38 | | When your application is in debug mode, detailed error messages with 39 | | stack traces will be shown on every error that occurs within your 40 | | application. If disabled, a simple generic error page is shown. 41 | | 42 | */ 43 | 44 | 'debug' => (bool) env('APP_DEBUG', false), 45 | 46 | /* 47 | |-------------------------------------------------------------------------- 48 | | Application URL 49 | |-------------------------------------------------------------------------- 50 | | 51 | | This URL is used by the console to properly generate URLs when using 52 | | the Artisan command line tool. You should set this to the root of 53 | | your application so that it is used when running Artisan tasks. 54 | | 55 | */ 56 | 57 | 'url' => env('APP_URL', 'http://localhost'), 58 | 59 | 'asset_url' => env('ASSET_URL', null), 60 | 61 | /* 62 | |-------------------------------------------------------------------------- 63 | | Application Timezone 64 | |-------------------------------------------------------------------------- 65 | | 66 | | Here you may specify the default timezone for your application, which 67 | | will be used by the PHP date and date-time functions. We have gone 68 | | ahead and set this to a sensible default for you out of the box. 69 | | 70 | */ 71 | 72 | 'timezone' => 'UTC', 73 | 74 | /* 75 | |-------------------------------------------------------------------------- 76 | | Application Locale Configuration 77 | |-------------------------------------------------------------------------- 78 | | 79 | | The application locale determines the default locale that will be used 80 | | by the translation service provider. You are free to set this value 81 | | to any of the locales which will be supported by the application. 82 | | 83 | */ 84 | 85 | 'locale' => 'en', 86 | 87 | /* 88 | |-------------------------------------------------------------------------- 89 | | Application Fallback Locale 90 | |-------------------------------------------------------------------------- 91 | | 92 | | The fallback locale determines the locale to use when the current one 93 | | is not available. You may change the value to correspond to any of 94 | | the language folders that are provided through your application. 95 | | 96 | */ 97 | 98 | 'fallback_locale' => 'en', 99 | 100 | /* 101 | |-------------------------------------------------------------------------- 102 | | Faker Locale 103 | |-------------------------------------------------------------------------- 104 | | 105 | | This locale will be used by the Faker PHP library when generating fake 106 | | data for your database seeds. For example, this will be used to get 107 | | localized telephone numbers, street address information and more. 108 | | 109 | */ 110 | 111 | 'faker_locale' => 'en_US', 112 | 113 | /* 114 | |-------------------------------------------------------------------------- 115 | | Encryption Key 116 | |-------------------------------------------------------------------------- 117 | | 118 | | This key is used by the Illuminate encrypter service and should be set 119 | | to a random, 32 character string, otherwise these encrypted strings 120 | | will not be safe. Please do this before deploying an application! 121 | | 122 | */ 123 | 124 | 'key' => env('APP_KEY'), 125 | 126 | 'cipher' => 'AES-256-CBC', 127 | 128 | /* 129 | |-------------------------------------------------------------------------- 130 | | Autoloaded Service Providers 131 | |-------------------------------------------------------------------------- 132 | | 133 | | The service providers listed here will be automatically loaded on the 134 | | request to your application. Feel free to add your own services to 135 | | this array to grant expanded functionality to your applications. 136 | | 137 | */ 138 | 139 | 'providers' => [ 140 | 141 | /* 142 | * Laravel Framework Service Providers... 143 | */ 144 | Illuminate\Auth\AuthServiceProvider::class, 145 | Illuminate\Broadcasting\BroadcastServiceProvider::class, 146 | Illuminate\Bus\BusServiceProvider::class, 147 | Illuminate\Cache\CacheServiceProvider::class, 148 | Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class, 149 | Illuminate\Cookie\CookieServiceProvider::class, 150 | Illuminate\Database\DatabaseServiceProvider::class, 151 | Illuminate\Encryption\EncryptionServiceProvider::class, 152 | Illuminate\Filesystem\FilesystemServiceProvider::class, 153 | Illuminate\Foundation\Providers\FoundationServiceProvider::class, 154 | Illuminate\Hashing\HashServiceProvider::class, 155 | Illuminate\Mail\MailServiceProvider::class, 156 | Illuminate\Notifications\NotificationServiceProvider::class, 157 | Illuminate\Pagination\PaginationServiceProvider::class, 158 | Illuminate\Pipeline\PipelineServiceProvider::class, 159 | Illuminate\Queue\QueueServiceProvider::class, 160 | Illuminate\Redis\RedisServiceProvider::class, 161 | Illuminate\Auth\Passwords\PasswordResetServiceProvider::class, 162 | Illuminate\Session\SessionServiceProvider::class, 163 | Illuminate\Translation\TranslationServiceProvider::class, 164 | Illuminate\Validation\ValidationServiceProvider::class, 165 | Illuminate\View\ViewServiceProvider::class, 166 | 167 | /* 168 | * Package Service Providers... 169 | */ 170 | 171 | /* 172 | * Application Service Providers... 173 | */ 174 | App\Providers\AppServiceProvider::class, 175 | App\Providers\AuthServiceProvider::class, 176 | // App\Providers\BroadcastServiceProvider::class, 177 | App\Providers\EventServiceProvider::class, 178 | App\Providers\RouteServiceProvider::class, 179 | App\Providers\RepositoryServiceProvider::class, 180 | 181 | ], 182 | 183 | /* 184 | |-------------------------------------------------------------------------- 185 | | Class Aliases 186 | |-------------------------------------------------------------------------- 187 | | 188 | | This array of class aliases will be registered when this application 189 | | is started. However, feel free to register as many as you wish as 190 | | the aliases are "lazy" loaded so they don't hinder performance. 191 | | 192 | */ 193 | 194 | 'aliases' => Facade::defaultAliases()->merge([ 195 | // ... 196 | ])->toArray(), 197 | 198 | ]; 199 | --------------------------------------------------------------------------------