https://dev.to/techtoolindia #make-rest-api-in-laravel-9 Make REST API in LARAVEL 9 In this video i am going to explain about CRUD Operation using REST API.
* * @return void */ public function down() { Schema::dropIfExists('posts'); }}; Next update the Model fillable property in app/models/Post.php json([ 'status' => true, 'posts' => $posts ]); }
* * @param \App\Models\Post $post * @return \Illuminate\Http\Response */ public function edit(Post $post) { // }