https://github.com/bgr8/quizapp
https://github.com/bgr8/quizapp
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bgr8/quizapp
- Owner: bgr8
- Created: 2022-02-21T07:47:16.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-02-21T07:47:25.000Z (over 4 years ago)
- Last Synced: 2025-06-01T07:12:22.665Z (about 1 year ago)
- Language: PHP
- Size: 376 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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.
## Laravel Kurulum
```
composer create-project laravel/laravel contactapp
cd contactapp
php artisan serve
```
## Jetstream Kurulum
```
composer require laravel/jetstream
```
## Jetstream with Livewire
```
php artisan jetstream:install livewire
```
## Veritabanına Gönder
```
php artisan migrate
```
## npm install && npm run dev
```
npm install
npm run dev
```
## Yapılan değişiklikeri otomatik kaydet
```
npm run watch
```
## Storage Linki ver
```
php artisan storage:link
```
## Bootstrap kurulum
```
npm i bootstrap
```
## Bootstrap'ı ```resources>css>app.css``` import et
```
@import 'bootstrap';
```
# Veritabanını Temizle
```
php artisan migrate:fresh
```
## Seeders yorumunu kaldır ve 5 tane üye oluştur.
```
// seeders/DatabaseSeeder.php
\App\Models\User::factory(5)->create();
```
## Üye türünü belirt (admin, user)
```
// admin/migrations/.._create_users_table.php
$table->enum('type', ['admin', 'user'])->default('user');
```
## Üyeleri oluştur
```
// database/factories/UserFactory.php
$types = ['admin', 'user'];
'type' => $types[rand(0,1)],
```
## Tabloları sıfırla ve kullanıcı tablosuna verileri yükle
```
php artisan migrate:fresh --seed
```
## Middleware Oluştur
```
php artisan make:middleware isAdmin
```
## Quiz Migration
```
php artisan make:migration quiz_migration --create="quizzes"
```
## Quiz to Migrate
```
php artisan migrate
```
## Errors Folder in Views
```
php artisan vendor:publish --tag=laravel-erros
```