API Routes
Then we need to generate our controller by running:
php artisan make:controller CreatePostController
And adding the relevant route entry.
<?php
Route::post('posts', 'CreatePostController@create');
Updated less than a minute ago
Then we need to generate our controller by running:
php artisan make:controller CreatePostController
And adding the relevant route entry.
<?php
Route::post('posts', 'CreatePostController@create');
Updated less than a minute ago