Installation Add the package via Composer (if still functional):
composer require c2is/bigfoot-default-theme
Register the bundle in config/app.php under providers:
C2is\BigfootDefaultTheme\BigfootDefaultThemeBundle::class,
First Use Case
php artisan vendor:publish --provider="C2is\BigfootDefaultTheme\BigfootDefaultThemeBundle" --tag=assets
base.html.twig) into your Laravel app’s views.config/bigfoot.php (if config exists).Template Inheritance
Extend the theme’s base template (e.g., base.html.twig) in your app’s resources/views/layouts/app.blade.php:
{% extends 'BigfootDefaultTheme::base.html.twig' %}
{% block title %}{{ config('app.name') }}{% endblock %}
Asset Management
<link href="{{ asset('vendor/bigfoot-default-theme/css/style.css') }}" rel="stylesheet">
public/vendor/bigfoot-default-theme/ or publish custom assets.Configuration
config/bigfoot.php:
'theme' => [
'primary_color' => '#3498db',
'logo' => asset('images/custom-logo.png'),
],
Dynamic Content Blocks
header, footer) and override them in your views:
{% block header %}
{{ include('partials.custom-header') }}
{% endblock %}
Outdated Dependencies
Missing Documentation
src/Resources/views/ for templates.src/DependencyInjection/ for bundle logic.php artisan config:clear if config changes aren’t reflecting.Asset Path Assumptions
/vendor/bigfoot-default-theme/) may break in custom setups.web.php or use mix/vite to republish assets.Twig vs. Blade Conflicts
@php echo $__env->make('BigfootDefaultTheme::partial', ['name' => 'header'])->render() @endphp
laravel-twig-bridge for hybrid support.{{ dump(_context) }} in Twig templates to inspect available variables.public/vendor/ or debug with:
php artisan vendor:publish --tag=assets --force
dd(config('bigfoot')); // If config key exists
Custom Templates
resources/views/vendor/bigfoot-default-theme/ with the same name (e.g., header.html.twig).Theme Variables
// In a controller
return view('BigfootDefaultTheme::page', ['custom_var' => 'value']);
Event Listeners
EventServiceProvider:
protected $listen = [
'bigfoot.theme.ready' => [
\App\Listeners\CustomizeTheme::class,
],
];
Fork and Modify
Kernel with Application).How can I help you explore Laravel packages today?