Compare commits

...

2 Commits

Author SHA1 Message Date
Baghaztra
36c993cedc Merge branch 'main' of https://git.abbauf.com/Magang-2025/Kasir 2025-08-27 17:03:01 +07:00
Baghaztra
b9cc947221 [fix] personal access token 2025-08-27 17:02:56 +07:00
3 changed files with 4 additions and 77 deletions

View File

@ -101,16 +101,9 @@ DB_USERNAME=your_username
DB_PASSWORD=your_password
```
### 5. #Install Laravel Sanctum
---
**BELUM DIGUNAKAN**
```bash
# Publish konfigurasi Sanctum
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"
```
### 6. Setup Database
### 5. Setup Database
```bash
# Jalankan migrasi
@ -120,14 +113,14 @@ php artisan migrate
php artisan db:seed
```
### 7. Storage Link
### 6. Storage Link
```bash
# Buat symbolic link untuk storage
php artisan storage:link
```
### 8. Jalankan Aplikasi
### 7. Jalankan Aplikasi
#### Development Mode

View File

@ -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');
}
};

View File

@ -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');
}
};