diff --git a/.env.example b/.env.example index 2e2fc8e..c225656 100644 --- a/.env.example +++ b/.env.example @@ -4,7 +4,7 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost -LOG_CHANNEL=stack +LOG_CHANNEL=daily LOG_LEVEL=debug DB_CONNECTION=mysql diff --git a/README.md b/README.md index 49c38be..b0b3566 100644 --- a/README.md +++ b/README.md @@ -1,64 +1,3 @@ -
- - - -## About Laravel - -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: - -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). - -Laravel is accessible, powerful, and provides tools required for large, robust applications. - -## Learning Laravel - -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. - -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. - -## Laravel Sponsors - -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). - -### Premium Partners - -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Cubet Techno Labs](https://cubettech.com)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[Many](https://www.many.co.uk)** -- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** -- **[DevSquad](https://devsquad.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[OP.GG](https://op.gg)** -- **[CMS Max](https://www.cmsmax.com/)** -- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** - -## Contributing - -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). - -## Code of Conduct - -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). - -## Security Vulnerabilities - -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. - -## License - -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). +## Quizzy - Online Quiz System +*** +Developing in Laravel and VueJS... diff --git a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php b/database/migrations/2021_10_09_075623_create_quizzes_table.php similarity index 54% rename from database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php rename to database/migrations/2021_10_09_075623_create_quizzes_table.php index 4315e16..1909538 100644 --- a/database/migrations/2019_12_14_000001_create_personal_access_tokens_table.php +++ b/database/migrations/2021_10_09_075623_create_quizzes_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -class CreatePersonalAccessTokensTable extends Migration +class CreateQuizzesTable extends Migration { /** * Run the migrations. @@ -13,13 +13,13 @@ class CreatePersonalAccessTokensTable extends Migration */ public function up() { - Schema::create('personal_access_tokens', function (Blueprint $table) { + Schema::table('quizzes', function (Blueprint $table) { $table->id(); - $table->morphs('tokenable'); + $table->unsignedBigInteger('author_id')->index(); $table->string('name'); - $table->string('token', 64)->unique(); - $table->text('abilities')->nullable(); - $table->timestamp('last_used_at')->nullable(); + $table->unsignedInteger('time_limit'); + $table->boolean('author_digest'); + $table->boolean('status'); $table->timestamps(); }); } @@ -31,6 +31,8 @@ public function up() */ public function down() { - Schema::dropIfExists('personal_access_tokens'); + Schema::table('quizzes', function (Blueprint $table) { + // + }); } } diff --git a/database/migrations/2021_10_09_075946_create_questions_table.php b/database/migrations/2021_10_09_075946_create_questions_table.php new file mode 100644 index 0000000..c2a9fef --- /dev/null +++ b/database/migrations/2021_10_09_075946_create_questions_table.php @@ -0,0 +1,37 @@ +id(); + $table->unsignedBigInteger('quiz_id')->index(); + $table->text('question'); + $table->json('options'); + $table->unsignedInteger('answer'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('questions', function (Blueprint $table) { + // + }); + } +}