This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# models/index.rb | |
# == Index Model | |
# | |
# The `Index` model manages full-text search indexes using SQLite's FTS5 (Full-Text Search) extension. | |
# It provides methods for adding, removing, and searching indexed items, as well as managing the underlying database schema. | |
# | |
# ### Key Features | |
# - **Adding Items**: Adds items to the index, ensuring any existing entries are first removed. | |
# - **Removing Items**: Removes items from the index based on their ID and class type. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## SqliteFullTextSearch Concern | |
# | |
# The `SqliteFullTextSearch` concern provides a set of methods and triggers to enable full-text search capabilities for ActiveRecord models using SQLite's FTS5 extension. | |
# | |
# ### Key Features | |
# - **Full-Text Search Scope**: Adds a `search` scope to the model for performing full-text searches. | |
# - **Index Creation and Management**: Automatically creates and manages FTS5 tables and triggers for the model. | |
# - **Attribute Configuration**: Allows specifying attributes to include in the full-text search index. | |
# - **Trigger Management**: Sets up triggers to keep the search index up-to-date with model changes. | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Facades\Gate; | |
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider; | |
class AuthServiceProvider extends ServiceProvider | |
{ | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Alerts | |
@include alert-variant($background, $border, $text-color); | |
// Background Variant | |
@include bg-variant($parent, $color); | |
// Border Radius | |
@include border-top-radius($radius); | |
@include border-right-radius($radius); | |
@include border-bottom-radius($radius); |