Sample form checkbox radio add insert Laravel 9

Sample form checkbox radio add insert Laravel 9


Sample form checkbox radio add insert Laravel 9

Hello Dev,

This tutorial will give you an example of how to clone the Laravel project from Github. let’s discuss steps to clone Laravel project from Github. I explained simply about the clone Laravel project from Github. This article goes into detail on the clone Laravel project from Github on the server.

In this tutorial, I will show you step by step how to clone Laravel projects from Github, GitLab, or bitbucket and setup in ubuntu server from scratch. you can easily clone the Laravel 8 project from this post.

So, let's follow below step by step and get done with the clone Laravel app.

Git Clone my Project

1.Run `git clone 'link projer github'
2.Run composer update
3.Run cp .env.example .env or copy .env.example .env
4.Run php artisan key:generate
5.Run php artisan migrate
6.Run php artisan serve
7.Go to link localhost:8000

Step 1: Git Clone Laravel 9

First, clone a new Laravel app just by running the below command in your terminal.

git clone

Step 2: Composer Update

Type the command in your terminal.

composer update

Step 3: Update Your Database Credentials

After that update your database credentials in your .env file which is located in your project root.

1. connection databases

DB_PASSWORD=#your database password
2. for send mail when fogot password

MAIL_USERNAME=your email
MAIL_PASSWORD='your password email'

Step 4: Make Migration

After adding the migration file now run the migrate command.

php artisan migrate

Step 5: Form Checkbox radio

form checkbox radio sample.

<link rel="stylesheet" href="" >
<div id="main">
    <header class="mb-3">
        <a href="#" class="burger-btn d-block d-xl-none">
            <i class="bi bi-justify fs-3"></i>
    <div class="page-title">
        <div class="row">
            <div class="col-12 col-md-6 order-md-1 order-last">
                <h3>Form Checkbox Information</h3>
                <p class="text-subtitle text-muted">Form checkbox</p>
            <div class="col-12 col-md-6 order-md-2 order-first">
                <nav aria-label="breadcrumb" class="breadcrumb-header float-start float-lg-end">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a href="{{ route('home') }}">Dashboard</a></li>
                        <li class="breadcrumb-item active" aria-current="page">Form Checkbox</li>
    /*  customize check box radio*/
    .option-input {
        -webkit-appearance: none;
        -moz-appearance: none;
        -ms-appearance: none;
        -o-appearance: none;
        appearance: none;
        position: relative;
        top: 8px;
        right: 0;
        bottom: 0;
        left: 0;
        height: 25px;
        width: 25px;
        transition: all 0.15s ease-out 0s;
        background: #cbd1d8;
        border: none;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        margin-right: 0.5rem;
        outline: none;
        position: relative;
        z-index: 1000;
    .option-input:hover {
        background: #9faab7;
    .option-input:checked {
        background: #5ddab4;
    .option-input:checked::before {
        width: 25px;
        height: 25px;
        content: '\f00c';
        font-size: 15px;
        position: absolute;
        font-family:'Font Awesome 5 Free';
    .option-input:checked::after {
        -webkit-animation: click-wave 0.65s;
        -moz-animation: click-wave 0.65s;
        animation: click-wave 0.65s;
        background: #5ddab4;
        content: '';
        display: block;
        position: relative;
        z-index: 100;
    } {
        border-radius: 50%;
    } {
        border-radius: 50%;

    @keyframes click-wave {
    0% {
        height: 25px;
        width: 25px;
        opacity: 0.35;
        position: relative;
    100% {
        height: 150px;
        width: 150px;
        margin-left: -60px;
        margin-top: -60px;
        opacity: 0;
    /* end customize check box radio*/

    {{-- message --}}
    {!! Toastr::message() !!}

    <div class="col-12">
        <div class="card">
            <div class="card-header">
                <h4 class="card-title">Form Checkbox Save</h4>
            <div class="card-content">
                <div class="card-body">
                    <form class="form form-horizontal" action="{{ route('form/checkbox/save') }}" method="POST">
                        <div class="form-body">
                            <div class="row">
                                <div class="radio">
                                    <label>Question 1</label>
                                <div class="radio">
                                    <label><input type="radio" class="option-input radio" name="question1" value="A">A</label>
                                    <label><input type="radio" class="option-input radio" name="question1" value="B">B</label>
                                    <label><input type="radio" class="option-input radio" name="question1" value="C">C</label>
                                <div class="radio">
                                    <label>Question 2</label>
                                <div class="radio">
                                    <label><input type="radio" class="option-input radio" name="question2" value="A">A</label>
                                    <label><input type="radio" class="option-input radio" name="question2" value="B">B</label>
                                    <label><input type="radio" class="option-input radio" name="question2" value="C">C</label>
                                <div class="radio">
                                    <label>Question 3</label>
                                <div class="radio">
                                    <label><input type="radio" class="option-input radio" name="question3" value="A">A</label>
                                    <label><input type="radio" class="option-input radio" name="question3" value="B">B</label>
                                    <label><input type="radio" class="option-input radio" name="question3" value="C">C</label>
                            <div class="col-12 d-flex justify-left-end">
                                <button type="submit" class="btn btn-primary me-1 mb-1">Save</button>
                                <button type="reset" class="btn btn-light-secondary me-1 mb-1">Cannel</button>

Step 6:Run

After adding the run file now run the migrate command.

php artisan serve

StarCode Kh

Website that learns and reads, PHP, Framework Laravel, How to and download Admin template sample source code free.

Post a Comment

Previous Post Next Post