Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Cycle Orm Adapter Laravel Package

wayofdev/laravel-cycle-orm-adapter

View on GitHub
Deep Wiki
Context7

import { Callout } from "nextra-theme-docs"; import {createMarkup, OptionTable} from "../../components/env-table";

export const columns = [ { key: 'variable', header: 'Environment Variable', headerClassName: '', cellClassName: 'whitespace-pre py-2 font-mono text-xs font-semibold leading-6 text-violet-600 dark:text-violet-500' }, { key: 'values', header: 'Available Values', headerClassName: 'pl-6', cellClassName: 'whitespace-pre py-2 pl-6 font-mono text-xs font-semibold leading-6 text-slate-500 dark:text-slate-400' }, { key: 'defaultValue', header: 'Default', headerClassName: 'pl-6', cellClassName: '"whitespace-pre py-2 pl-6 font-mono text-xs font-semibold leading-6 text-slate-500 dark:text-slate-400' }, { key: 'description', header: 'Description', headerClassName: 'px-6', cellClassName: 'py-2 pl-6', render: (value) => <div dangerouslySetInnerHTML={createMarkup(value)}> }, ];

Configuration

This section guides you through configuring the Laravel-CycleORM-Adapter package within your Laravel application. Configuration settings are managed in the config/cycle.php file. Ensure you have this file in your project by following the steps outlined in the Installation guide.

🌎 Environment Variables

Database Connection Variables

This section details the environment variables for database connections. Our package uses Laravel's standard variables and introduces additional settings for CycleORM integration. Configure these in your .env file as needed or override them in your config/cycle.php file.

These are variables, that will be in .env file of your Laravel project from the box, and are used by config/cycle.php to configure CycleORM.

export const defaultEnv = [ ["DB_CONNECTION", "string", "sqlite", "Database driver: pgsql, mysql, sqlite, sqlserver."], ["DB_HOST", "string", "127.0.0.1", "Database server hostname or IP."], ["DB_PORT", "integer", "by-driver", "The database port, driver specific."], ["DB_DATABASE", "string", "wod", "The database name."], ["DB_USERNAME", "string", "wod", "The database username."], ["DB_PASSWORD", "string", "wod", "The database password."] ];

<OptionTable options={defaultEnv.map(([variable, values, defaultValue, description]) => ({ variable, values, defaultValue, description }))} columns={columns} />

Additional Variables

These variables offer further customization for CycleORM's operation within Laravel.

export const extraEnv = [ ["DB_DEFAULT_CONNECTION", "string", "default", "The default database connection."], ["DB_DEFAULT_LOGGER", "?string", "null", "Laravel logger channel, to log queries. Loggers can be added in config/logging.php"], ["DB_USE_TELESCOPE_LOGGER", "boolean", "false", "When enabled, QueryExecuted event will be fired through TelescopeLogger class."], ["DB_MIGRATIONS_TABLE", "string", "cycle_migrations", "The table name for the migrations."], ["CYCLE_TOKENIZER_CACHE_TARGETS", "boolean", "true", "Determines whether to cache located classes utilizing annotations."], ["CYCLE_TOKENIZER_LOAD_CLASSES", "boolean", "true", "Controls whether files of type class should be loaded."], ["CYCLE_TOKENIZER_LOAD_ENUMS", "boolean", "false", "Controls whether files of type enum should be loaded."], ["CYCLE_TOKENIZER_LOAD_INTERFACES", "boolean", "false", "Controls whether files of type interface should be loaded."], ["CYCLE_ATTRIBUTES_CACHE", "boolean", "true", "Determines whether located attributes should be cached."], ["CYCLE_ATTRIBUTES_CACHE_DRIVER", "string", "file", "Specifies the cache driver to use, selectable from the stores defined in config/cache.php."], ["DB_DEFAULT_COLLECTION", "string", "illuminate", "Sets the default collection implementation: array, illuminate, doctrine."], ["CYCLE_SCHEMA_WARMUP", "boolean", "true", "Indicates whether the schema cache should be preloaded."], ["CYCLE_REGISTER_ENTITY_BEHAVIOUR", "boolean", "true", "Enables support of SoftDelete and other behaviours from <a class="nx-text-primary-600 nx-underline nx-decoration-from-font [text-underline-position:from-font]" target="_blank" href="https://github.com/cycle/entity-behavior">cycle/entity-behavior"] ];

<OptionTable options={extraEnv.map(([variable, values, defaultValue, description]) => ({ variable, values, defaultValue, description }))} columns={columns} />

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor