delete route method in laravel
// Blade
@method('delete')
// Html
<input type="hidden" name="_method" value="delete"><form method="POST" action="{{ route('route.name', [ 'id'=> $item->id ]) }}">
@csrf
<input type="hidden" name="_method" value="DELETE">
<button type="submit" class="btn btn-danger btn-icon">
<i data-feather="delete"></i>
</button>
</form>
Also in PHP:
- clear cache command in laravel
- check if array has key php
- Woocommerce Display field value on the admin order edit page [Custom Field Display 2]
- current time php
- error handeling oops php
- $dbConnection = new PDO($dsn, $user, $pass);
- am pm php date
- do_shortcode
- PHP REDIRECTION
- <?php echo date(" h: i : s A");?>
- filteredduplicata php
- artisan laravel install
- can't see php7 in my mac
- error in php see
- basic code for file upload in php
- ?name="" value in php
- create seeding in laravel
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:/composer/composer.phar/s
- array_unique trong php
- echo line php
- decode base64 with key php
- array check duplicates php
- echo type php
- * in array key php