Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Laravel v9 #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "bastinald/laravel-bootstrap-components",
"name": "ova-studio/laravel-bootstrap-components",
"homepage": "https://github.com/bastinald/laravel-bootstrap-components",
"description": "Laravel Bootstrap Blade components.",
"license": "MIT",
Expand All @@ -11,7 +11,7 @@
}
],
"require": {
"laravel/framework": "^8.0"
"laravel/framework": "^8.0|^9.0"
},
"autoload": {
"psr-4": {
Expand Down
15 changes: 0 additions & 15 deletions config/laravel-bootstrap-components.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,6 @@

return [

/*
|--------------------------------------------------------------------------
| Font Awesome Style
|--------------------------------------------------------------------------
|
| This value is the default Font Awesome style to use for icons. This can
| be overridden at the component level for cases where you want to show a
| brand icon, etc. Regular and light require FA pro to be installed.
|
| Supported: "solid", "regular", "light"
|
*/

'font_awesome_style' => 'solid',

/*
|--------------------------------------------------------------------------
| Use With Model Trait
Expand Down
9 changes: 2 additions & 7 deletions resources/views/components/icon.blade.php
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
@props([
'name' => null,
'style' => config('laravel-bootstrap-components.font_awesome_style'),
'size' => null,
'color' => null,
'spin' => false,
'pulse' => false,
])

@php
$attributes = $attributes->class([
'fa' . Str::limit($style, 1, null) . ' fa-fw fa-' . $name,
'fa-' . $size => $size,
'bi bi-' . $name,
'text-' . $color => $color,
'fa-spin' => $spin,
'fa-pulse' => $pulse,
'fs-' . $size => $size
])->merge([
//
]);
Expand Down