├── public
├── favicon.ico
├── robots.txt
├── images
│ └── mister_quiz.png
├── .htaccess
├── web.config
├── index.php
└── css
│ └── app.css
├── bootstrap
├── cache
│ ├── .gitignore
│ └── packages.php
└── app.php
├── resources
├── js
│ ├── app.js
│ └── bootstrap.js
├── views
│ ├── app.blade.php
│ └── components
│ │ └── question.blade.php
├── lang
│ └── en
│ │ ├── pagination.php
│ │ ├── auth.php
│ │ ├── passwords.php
│ │ └── validation.php
└── css
│ └── app.css
├── storage
├── logs
│ └── .gitignore
├── app
│ ├── public
│ │ └── .gitignore
│ └── .gitignore
└── framework
│ ├── testing
│ └── .gitignore
│ ├── views
│ ├── .gitignore
│ ├── 43f5b2e147ab5efc2fcb401c5b4c49a8c2660899.php
│ ├── 6b400892e6eeb96697c1e89b2f94eaa2fae7f7f8.php
│ ├── ef499cfd1532ae0ef777393848df1947c84ac091.php
│ ├── 72ecc789ce58f3a2c7e83bdaba21dd2b333bfbcc.php
│ ├── 94634cd03ac7af62c7ed3c6f340aeb34d3ec736f.php
│ ├── 238cc8f269babd8d31248cdd7828258760db2af7.php
│ ├── 5901ce2799e9e4e41ccc1e23534875c724e4b675.php
│ ├── 81c49649d02929334430f93a41ae7777846cf660.php
│ ├── a6d83cda170cfaa24e3630da7e2b68d9ec348d8d.php
│ ├── 6e55d12fe02ac5e71749e405e14d09bc1eb2b473.php
│ ├── 0df3112283706f801d4d40ad9ea2a12284068523.php
│ ├── 1febb7e24ede289b0380bf383c14c0792b104a6d.php
│ ├── de0a235f2c8ddaecc242c377ac680789e5a5c413.php
│ ├── 9ce8af6e18a4a1f92997bd45074bf2d2005a562f.php
│ ├── 760f44e979029dd41f1bc8f0c135c7271399b163.php
│ ├── 53c147ba86aae652e628058af23bddb5f641cbb9.php
│ ├── 8877b7bff2bb0314e1a84c0e542e7cd4331a4edb.php
│ ├── f0c92ba7f6283592503b3b5ebb1e47edc5128c28.php
│ ├── 4bb3c85f0ba844fb4662c5e696f6171ac29196f8.php
│ ├── 9a882a5cb74e6304d8e24cc3165e940de75e18a8.php
│ ├── 8035a43597a9be7451c49dd10e4f2e2dc5087f13.php
│ ├── 495eeafa9f64ddf36acc694912bef17289fef8d4.php
│ ├── 988a38db006e22a2a1a3a5cac23a72c965688c0d.php
│ └── 6543dac23d5bf46b14b4147c0c648d9d1d886166.php
│ ├── cache
│ ├── data
│ │ └── .gitignore
│ └── .gitignore
│ ├── sessions
│ └── .gitignore
│ └── .gitignore
├── database
├── .gitignore
├── seeders
│ └── DatabaseSeeder.php
├── migrations
│ ├── 2014_10_12_100000_create_password_resets_table.php
│ ├── 2021_03_17_105310_create_questions_table.php
│ ├── 2021_03_17_112752_create_answers_table.php
│ ├── 2021_03_22_103501_create_quiz_table.php
│ ├── 2014_10_12_000000_create_users_table.php
│ ├── 2019_08_19_000000_create_failed_jobs_table.php
│ └── 2021_03_16_160502_add_attributes_to_users_table.php
└── factories
│ └── UserFactory.php
├── .gitignore
├── tests
├── TestCase.php
├── Unit
│ └── ExampleTest.php
├── Feature
│ └── ExampleTest.php
└── CreatesApplication.php
├── app
├── Http
│ ├── Controllers
│ │ ├── HomeController.php
│ │ ├── Auth
│ │ │ ├── LogoutController.php
│ │ │ ├── LoginController.php
│ │ │ └── RegisterController.php
│ │ ├── Controller.php
│ │ ├── LeaderboardController.php
│ │ ├── ProfileController.php
│ │ └── Questions
│ │ │ └── QuestionController.php
│ ├── Middleware
│ │ ├── EncryptCookies.php
│ │ ├── VerifyCsrfToken.php
│ │ ├── TrustHosts.php
│ │ ├── PreventRequestsDuringMaintenance.php
│ │ ├── TrimStrings.php
│ │ ├── Authenticate.php
│ │ ├── TrustProxies.php
│ │ └── RedirectIfAuthenticated.php
│ └── Kernel.php
├── Models
│ ├── Answer.php
│ ├── Question_Quiz.php
│ ├── Question.php
│ ├── Quiz.php
│ └── User.php
├── Providers
│ ├── BroadcastServiceProvider.php
│ ├── AppServiceProvider.php
│ ├── AuthServiceProvider.php
│ ├── EventServiceProvider.php
│ └── RouteServiceProvider.php
├── Exceptions
│ └── Handler.php
└── Console
│ └── Kernel.php
├── package.json
├── webpack.mix.js
├── routes
├── channels.php
├── api.php
├── console.php
└── web.php
├── server.php
├── Dockerfile
├── docker-compose.yml
├── config
├── cors.php
├── services.php
├── view.php
├── hashing.php
├── broadcasting.php
├── filesystems.php
├── queue.php
├── logging.php
├── cache.php
├── mail.php
├── auth.php
├── database.php
├── session.php
└── app.php
├── .env
├── .env.example.txt
├── phpunit.xml
├── README.md
├── artisan
├── composer.json
└── questions_and_answers.sql
/public/favicon.ico:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/bootstrap/cache/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/resources/js/app.js:
--------------------------------------------------------------------------------
1 | require('./bootstrap');
2 |
--------------------------------------------------------------------------------
/storage/logs/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/database/.gitignore:
--------------------------------------------------------------------------------
1 | *.sqlite
2 | *.sqlite-journal
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 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdaguenouz/mister-quiz/HEAD/.gitignore
--------------------------------------------------------------------------------
/public/images/mister_quiz.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/fahdaguenouz/mister-quiz/HEAD/public/images/mister_quiz.png
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------
/tests/TestCase.php:
--------------------------------------------------------------------------------
1 | assertTrue(true);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/app/Models/Question_Quiz.php:
--------------------------------------------------------------------------------
1 | route('home');
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/storage/framework/views/43f5b2e147ab5efc2fcb401c5b4c49a8c2660899.php:
--------------------------------------------------------------------------------
1 | startSection('content'); ?>
2 |
3 |
6 |
7 | stopSection(); ?>
8 | make('app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
--------------------------------------------------------------------------------
/database/seeders/DatabaseSeeder.php:
--------------------------------------------------------------------------------
1 | create();
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/app/Http/Middleware/EncryptCookies.php:
--------------------------------------------------------------------------------
1 | get('/');
18 |
19 | $response->assertStatus(200);
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/app/Http/Middleware/TrustHosts.php:
--------------------------------------------------------------------------------
1 | allSubdomainsOfApplicationUrl(),
18 | ];
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/app/Http/Middleware/PreventRequestsDuringMaintenance.php:
--------------------------------------------------------------------------------
1 | startSection('content'); ?>
2 |
3 |
4 |
5 |
6 |
7 |
8 | stopSection(); ?>
9 | make('app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
--------------------------------------------------------------------------------
/app/Http/Middleware/TrimStrings.php:
--------------------------------------------------------------------------------
1 | startSection('title', __('Not Found')); ?>
2 | startSection('code', '404'); ?>
3 | startSection('message', __('Not Found')); ?>
4 |
5 | make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
--------------------------------------------------------------------------------
/tests/CreatesApplication.php:
--------------------------------------------------------------------------------
1 | make(Kernel::class)->bootstrap();
19 |
20 | return $app;
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/app/Providers/BroadcastServiceProvider.php:
--------------------------------------------------------------------------------
1 | hasMany(Answer::class);
17 | }
18 |
19 | public function quizes()
20 | {
21 | return $this->belongsToMany(Quiz::class);
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/storage/framework/views/72ecc789ce58f3a2c7e83bdaba21dd2b333bfbcc.php:
--------------------------------------------------------------------------------
1 | startSection('title', __('Not Found')); ?>
2 | startSection('code', '404'); ?>
3 | startSection('message', __('Not Found')); ?>
4 |
5 | make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
--------------------------------------------------------------------------------
/storage/framework/views/94634cd03ac7af62c7ed3c6f340aeb34d3ec736f.php:
--------------------------------------------------------------------------------
1 | startSection('title', __('Page Expired')); ?>
2 | startSection('code', '419'); ?>
3 | startSection('message', __('Page Expired')); ?>
4 |
5 | make('errors::minimal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
--------------------------------------------------------------------------------
/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 | "axios": "^0.21",
14 | "laravel-mix": "^6.0.6",
15 | "lodash": "^4.17.19",
16 | "postcss": "^8.1.14"
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/resources/views/app.blade.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Mister Quiz
9 |
10 |
11 |
12 |
13 |
14 | @yield('content')
15 |
16 |
17 |
--------------------------------------------------------------------------------
/app/Providers/AppServiceProvider.php:
--------------------------------------------------------------------------------
1 | expectsJson()) {
18 | return route('login');
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/storage/framework/views/238cc8f269babd8d31248cdd7828258760db2af7.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mister Quiz
8 |
9 |
10 |
11 |
12 |
13 | yieldContent('content'); ?>
14 |
15 |
16 |
--------------------------------------------------------------------------------
/storage/framework/views/5901ce2799e9e4e41ccc1e23534875c724e4b675.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Mister Quiz
8 |
9 |
10 |
11 |
12 |
13 | yieldContent('content'); ?>
14 |
15 |
16 |
--------------------------------------------------------------------------------
/resources/lang/en/pagination.php:
--------------------------------------------------------------------------------
1 | '« Previous',
17 | 'next' => 'Next »',
18 |
19 | ];
20 |
--------------------------------------------------------------------------------
/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 applications. By default, we are compiling the CSS
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 | .postCss('resources/css/app.css', 'public/css', [
16 | //
17 | ]);
18 |
--------------------------------------------------------------------------------
/routes/channels.php:
--------------------------------------------------------------------------------
1 | id === (int) $id;
18 | });
19 |
--------------------------------------------------------------------------------
/routes/api.php:
--------------------------------------------------------------------------------
1 | get('/user', function (Request $request) {
18 | return $request->user();
19 | });
20 |
--------------------------------------------------------------------------------
/server.php:
--------------------------------------------------------------------------------
1 |
8 | */
9 |
10 | $uri = urldecode(
11 | parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)
12 | );
13 |
14 | // This file allows us to emulate Apache's "mod_rewrite" functionality from the
15 | // built-in PHP web server. This provides a convenient way to test a Laravel
16 | // application without having installed a "real" web server software here.
17 | if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) {
18 | return false;
19 | }
20 |
21 | require_once __DIR__.'/public/index.php';
22 |
--------------------------------------------------------------------------------
/routes/console.php:
--------------------------------------------------------------------------------
1 | comment(Inspiring::quote());
19 | })->purpose('Display an inspiring quote');
20 |
--------------------------------------------------------------------------------
/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/Http/Middleware/TrustProxies.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Mister Quiz
9 |
10 |
11 |
12 |
13 |
14 | yieldContent('content'); ?>
15 |
16 |
17 |