Compare commits
2 Commits
f97755e8db
...
36c993cedc
Author | SHA1 | Date | |
---|---|---|---|
|
36c993cedc | ||
|
b9cc947221 |
15
README.md
15
README.md
@ -101,16 +101,9 @@ DB_USERNAME=your_username
|
|||||||
DB_PASSWORD=your_password
|
DB_PASSWORD=your_password
|
||||||
```
|
```
|
||||||
|
|
||||||
### 5. #Install Laravel Sanctum
|
---
|
||||||
|
|
||||||
**BELUM DIGUNAKAN**
|
### 5. Setup Database
|
||||||
|
|
||||||
```bash
|
|
||||||
# Publish konfigurasi Sanctum
|
|
||||||
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
|
|
||||||
```
|
|
||||||
|
|
||||||
### 6. Setup Database
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Jalankan migrasi
|
# Jalankan migrasi
|
||||||
@ -120,14 +113,14 @@ php artisan migrate
|
|||||||
php artisan db:seed
|
php artisan db:seed
|
||||||
```
|
```
|
||||||
|
|
||||||
### 7. Storage Link
|
### 6. Storage Link
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# Buat symbolic link untuk storage
|
# Buat symbolic link untuk storage
|
||||||
php artisan storage:link
|
php artisan storage:link
|
||||||
```
|
```
|
||||||
|
|
||||||
### 8. Jalankan Aplikasi
|
### 7. Jalankan Aplikasi
|
||||||
|
|
||||||
#### Development Mode
|
#### Development Mode
|
||||||
|
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
<?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');
|
|
||||||
}
|
|
||||||
};
|
|
@ -1,33 +0,0 @@
|
|||||||
<?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