By using blade's extend, we can easily get the complete code of previous template and can use it in other template. For example we can use same code in create and update form.
+--------+-----------+------------------+--------------+---------------------------------------------+--------------+ | Domain | Method | URI | Name | Action | Middleware | +--------+-----------+------------------+--------------+---------------------------------------------+--------------+ | | GET|HEAD | / | | Closure | web | | | GET|HEAD | api/user | | Closure | api,auth:api | | | GET|HEAD | todo | todo.index | App\Http\Controllers\TodoController@index | web | | | POST | todo | todo.store | App\Http\Controllers\TodoController@store | web | | | GET|HEAD | todo/create | todo.create | App\Http\Controllers\TodoController@create | web | | | GET|HEAD | todo/{todo} | todo.show | App\Http\Controllers\TodoController@show | web | | | PUT|PATCH | todo/{todo} | todo.update | App\Http\Controllers\TodoController@update | web | | | DELETE | todo/{todo} | todo.destroy | App\Http\Controllers\TodoController@destroy | web | | | GET|HEAD | todo/{todo}/edit | todo.edit | App\Http\Controllers\TodoController@edit | web | +--------+-----------+------------------+--------------+---------------------------------------------+--------------+