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', '[email protected]');
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', '[email protected]');
Updated less than a minute ago