Get started
Install Angular Install Motivation
Tutorial
Overview TDD Model setup API routes Angular Http Angular Auth
Response Macros
Overview Validations
JWT Authentication
Overview Install Usage

This project has been archived. If you're curious, check out one of my latest courses:

If you work with JavaScript, check out the fetch use cases and JavaScript projects.

Thank you! — Jad Joubran

Model setup

In this step, we'll generate the model, & migration file

Migration & Model

Let's start by generating the Model & the migration file.

php artisan make:model Post -m

Then let's add the required fields to our migration file:

$table->string('title');
$table->text('description');

Then run the migration

php artisan migrate

AltStyle によって変換されたページ (->オリジナル) /