Radio button image

Radio button image is all about replacing traditional radio buttons with images.

Youtube Video

Installation

You can install the package via composer:

composer require ibrahimbougaoua/radiobuttonimage

You can publish the config file with:

php artisan vendor:publish --tag="radiobuttonimage-config"

This is the contents of the published config file:

return [
    'path' => asset('storage'),
];

Optionally, you can publish the views using

php artisan vendor:publish --tag="radiobuttonimage-views"

Usage

RadioButtonImage::make('template_id')
->label('Templates')
->options(
    Template::all()->pluck('image', 'id')->toArray()
)
0
Subscribe to my newsletter

Read articles from Ibrahim Bougaoua directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ibrahim Bougaoua
Ibrahim Bougaoua