Skip to content

bennettblack/fumc

Repository files navigation

Laravel Logo

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

In addition, Laracasts contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

You can also watch bite-sized lessons with real-world projects on Laravel Learn, where you will be guided through building a Laravel application from scratch while learning PHP fundamentals.

Agentic Development

Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install Laravel Boost to supercharge your AI workflow:

composer require laravel/boost --dev

php artisan boost:install

Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices.

Site Settings

Site-wide toggles (like the home page featured video) are stored in the settings table as key/value rows and edited through a Filament page at /admin/site-settings (under the Administration nav group).

Reading and writing

App\Models\Setting exposes two static helpers. Reads are cached forever and invalidated automatically on save/delete:

use App\Models\Setting;

Setting::get('featured_video_url');          // ?string
Setting::get('featured_video_url', 'fallback');
Setting::set('featured_video_url', 'https://vimeo.com/123456789');
Setting::set('featured_video_url', null);    // clears it

Using a setting in a Blade section

Follow the pattern in App\View\Components\Home\FeaturedVideo — read the setting in the constructor and return false from shouldRender() when it's unset, so the whole <section> disappears from the page:

public function __construct()
{
    $this->videoId = $this->extractId(Setting::get('featured_video_url'));
}

public function shouldRender(): bool
{
    return $this->videoId !== null;
}

Adding a new setting

  1. Pick a snake_case key (e.g. announcement_banner_text) — no migration needed.
  2. Add a field to SiteSettings::form() in app/Filament/Pages/SiteSettings.php.
  3. Map it in mount() (fill from Setting::get()) and save() (persist with Setting::set()).
  4. Read it from Blade/components via Setting::get('your_key').

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via taylor@laravel.com. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages