As a fan of geometry, I want to model a line based on points consisting of (x, y) co-ordinates using the cartesian system, so that I can calculate its length.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.gradle | |
.idea | |
out/ | |
*.class | |
*.log | |
*.jar | |
build/ | |
!gradle-wrapper.jar | |
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class BookController extends Controller | |
{ | |
/** | |
* Display a listing of the resource. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers; | |
use Illuminate\Http\Request; | |
class BookController extends Controller | |
{ | |
// | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Http\Request; | |
Route::get('/', function() { | |
return "Respon ini diterima dari path / dengan metode GET"; | |
}); | |
Route::get('/books', function(Request $request) { | |
return "Router ini nantinya akan digunakan untuk mengambil semua data buku. Closure method pada router ini juga menerima satu parameter yaitu $request yang digunakan untuk menampung query paramater"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http; | |
use Illuminate\Foundation\Http\Kernel as HttpKernel; | |
class Kernel extends HttpKernel | |
{ | |
.... | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Route::get('/', function() { | |
return "Respon ini diterima dari path / dengan metode GET"; | |
}); | |
Route::get('/books', function() { | |
return "Router ini nantinya akan digunakan untuk mengambil semua data buku"; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
.... | |
class CreateBooksTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('books', function (Blueprint $table) { | |
$table->bigIncrements('id'); | |
$table->string('title'); | |
$table->string('author'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table 'books' ( | |
'id' int unsigned not null auto_increment primary key, | |
'title' varchar(255) not null, | |
'author' varchar(255) not null, | |
'publication' varchar(255) not null, | |
'year' int unsigned not null, | |
'created_at' timestamp null, | |
'updated_at' timestamp null | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
.... | |
class CreateBooksTable extends Migration | |
{ | |
public function up() | |
{ | |
Schema::create('books', function (Blueprint $table) { | |
$table->bigIncrements('id'); | |
$table->string('title'); |