Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
FemiNoviaLina committed May 12, 2022
1 parent 7d3ca71 commit 61e545e
Show file tree
Hide file tree
Showing 8 changed files with 117 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/BasicViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public function guide()

public function cars()
{
return view('cars');
return view('vehicles-list');
}

public function motors()
{
return view('motors');
return view('vehicles-list');
}

public function help()
Expand Down
11 changes: 11 additions & 0 deletions app/Models/Order.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
use HasFactory;
}
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"guzzlehttp/guzzle": "^7.2",
"laravel/framework": "^9.11",
"laravel/sanctum": "^2.14.1",
"laravel/tinker": "^2.7"
"laravel/tinker": "^2.7",
"midtrans/midtrans-php": "^2.5"
},
"require-dev": {
"fakerphp/faker": "^1.9.1",
Expand Down
57 changes: 56 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/midtrans.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?php

return [
'mercant_id' => env('MIDTRANS_MERCHAT_ID'),
'client_key' => env('MIDTRANS_CLIENT_KEY'),
'server_key' => env('MIDTRANS_SERVER_KEY'),

'is_production' => false,
'is_sanitized' => false,
'is_3ds' => false,
];
31 changes: 31 additions & 0 deletions database/migrations/2022_05_12_130154_create_orders_table.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('orders', function (Blueprint $table) {
$table->id();
$table->timestamps();
});
}

/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('orders');
}
};
3 changes: 3 additions & 0 deletions public/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,9 @@ select {
.m-1 {
margin: 0.25rem;
}
.m-auto {
margin: auto;
}
.mx-6 {
margin-left: 1.5rem;
margin-right: 1.5rem;
Expand Down
2 changes: 1 addition & 1 deletion resources/views/guide.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Rules for All Renters
</a>
</div>
<div class="mt-4 mb-20 mx-20 px-20 py-10 bg-white shadow-md rounded-lg ">
<div class="mt-4 mb-20 px-20 py-10 bg-white shadow-md rounded-lg w-full max-w-7xl m-auto">
<ol class="relative border-l-2 border-lilac-100 ">
<li class="mb-10 ml-4">
<div class="absolute w-8 h-8 bg-gray-200 rounded-full text-center font-bold text-white pt-1 -left-4 border border-lilac-100 bg-lilac-100">1</div>
Expand Down

0 comments on commit 61e545e

Please sign in to comment.