This project provides the basic Laravel and database setup needed to develop and test the Laravel Api Handler. It also serves as an extended source of examples.
CURRENTLY IN DEVELOPMENT ALONG WITH API HANDLER V1.0
Setup the project by configuring your database in .env
and running the following commands:
composer install &&
php artisan migrate --seed
You can check out the demo by running the following command and visiting the given url:
php artisan serve
Below are all the Laravel relationships and how they are covered by this integration project.
📖 Laravel Docs
Post::post_extended()
posts
id - integer
...
post_extended
post_id - integer
...
📖 Laravel Docs
Post::votes()
posts
id - integer
...
votes
...
post_id - integer
📖 Laravel Docs
Vote::post()
votes
...
post_id - integer
posts
id - integer
...
📖 Laravel Docs
Post::tags()
post
id - integer
...
post_tag
post_id - integer
tag_id - string
tags
id - string
...
📖 Laravel Docs
Country::posts()
countries
id - integer
...
users
id - integer
...
country_id - integer
posts
...
user_id - integer
📖 Laravel Docs
Post::comments() or Video::comments()
posts
id - integer
...
videos
id - integer
...
comments
...
commentable_id - integer
commentable_type - string
📖 Laravel Docs
Post::tagsPoly() or Video::tagsPoly()
posts
id - integer
...
videos
id - integer
...
tags
id - string
...
taggables
tag_id - string
taggable_id - integer
taggable_type - string