Compare commits
No commits in common. "36c993cedc5b67f16abf1312c9b1ab3dba1de882" and "f97755e8dbd061898ffb894c9eab214b73205447" have entirely different histories.
36c993cedc
...
f97755e8db
15
README.md
15
README.md
@ -101,9 +101,16 @@ DB_USERNAME=your_username
|
|||||||
DB_PASSWORD=your_password
|
DB_PASSWORD=your_password
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
### 5. #Install Laravel Sanctum
|
||||||
|
|
||||||
### 5. Setup Database
|
**BELUM DIGUNAKAN**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Publish konfigurasi Sanctum
|
||||||
|
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6. Setup Database
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Jalankan migrasi
|
# Jalankan migrasi
|
||||||
@ -113,14 +120,14 @@ php artisan migrate
|
|||||||
php artisan db:seed
|
php artisan db:seed
|
||||||
```
|
```
|
||||||
|
|
||||||
### 6. Storage Link
|
### 7. Storage Link
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Buat symbolic link untuk storage
|
# Buat symbolic link untuk storage
|
||||||
php artisan storage:link
|
php artisan storage:link
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Jalankan Aplikasi
|
### 8. Jalankan Aplikasi
|
||||||
|
|
||||||
#### Development Mode
|
#### Development Mode
|
||||||
|
|
||||||
|
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->morphs('tokenable');
|
||||||
|
$table->text('name');
|
||||||
|
$table->string('token', 64)->unique();
|
||||||
|
$table->text('abilities')->nullable();
|
||||||
|
$table->timestamp('last_used_at')->nullable();
|
||||||
|
$table->timestamp('expires_at')->nullable()->index();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('personal_access_tokens');
|
||||||
|
}
|
||||||
|
};
|
@ -0,0 +1,33 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Illuminate\Database\Migrations\Migration;
|
||||||
|
use Illuminate\Database\Schema\Blueprint;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
return new class extends Migration
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Run the migrations.
|
||||||
|
*/
|
||||||
|
public function up(): void
|
||||||
|
{
|
||||||
|
Schema::create('personal_access_tokens', function (Blueprint $table) {
|
||||||
|
$table->id();
|
||||||
|
$table->morphs('tokenable');
|
||||||
|
$table->text('name');
|
||||||
|
$table->string('token', 64)->unique();
|
||||||
|
$table->text('abilities')->nullable();
|
||||||
|
$table->timestamp('last_used_at')->nullable();
|
||||||
|
$table->timestamp('expires_at')->nullable()->index();
|
||||||
|
$table->timestamps();
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
Schema::dropIfExists('personal_access_tokens');
|
||||||
|
}
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user