fa fa delete code example

Example 1: font awesome trash icon

For Font Awesome 5: <i class="fas fa-trash"></i>

Example 2: fontawecome dellete

<form action="" method="POST">
    <!-- fields -->
    <button type="submit" name="action" value="save">Save</button>
    <button type="submit" name="action" value="preview">Preview</button>
    <button type="submit" name="action" value="advanced_edit">Advanced edit</button>
</form>


public function store(Request $request)
{
    switch ($request->input('action')) {
        case 'save':
            // Save model
            break;

        case 'preview':
            // Preview model
            break;

        case 'advanced_edit':
            // Redirect to advanced edit
            break;
    }
}

Tags:

Css Example