### Octane Quick Start Guide Source: https://context7_llms A concise summary of the essential steps to get started with Laravel Octane in a Bagisto project, covering installation, setup, configuration, running, and accessing the application. ```bash 1. Install: composer require laravel/octane 2. Setup: php artisan octane:install --server=swoole 3. Configure: Update .env with Octane settings 4. Run: php artisan octane:start --watch 5. Access: Visit http://localhost:8000 ``` -------------------------------- ### Start Bagisto Development Server Source: https://devdocs.bagisto.com/getting-started/installation.html Starts a local development server, making your Bagisto store accessible at http://localhost:8000. ```bash php artisan serve ``` -------------------------------- ### Start Bagisto Development Server Source: https://context7_llms Command to start the built-in PHP development server for testing Bagisto locally. ```bash php artisan serve ``` -------------------------------- ### Run Bagisto Installation Script Source: https://devdocs.bagisto.com/getting-started/installation.html Executes the Bagisto installation artisan command, which guides you through configuring the application, database, and admin user interactively. ```bash php artisan bagisto:install ``` -------------------------------- ### Starting Development Server Source: https://context7_llms This command navigates to the theme's package directory and starts the development server using npm. It's crucial for real-time updates during development. ```bash cd packages/Webkul/CustomTheme npm run dev ``` -------------------------------- ### Install Bagisto Package Generator Source: https://context7_llms Installs the Bagisto package generator using Composer, a prerequisite for the quick setup method. ```bash composer require bagisto/bagisto-package-generator ``` -------------------------------- ### Execute Bagisto Docker Setup Script Source: https://context7_llms Runs the setup script to initialize and build the Docker containers for Bagisto. This script handles building images, installing dependencies, and configuring containers, preparing the environment for Bagisto. ```bash sh setup.sh ``` -------------------------------- ### Build and Start Sail Services Source: https://devdocs.bagisto.com/getting-started/installation.html Builds the Docker containers for Sail services without cache and then starts them in the background. This is essential for running the Bagisto development environment. ```bash vendor/bin/sail build --no-cache vendor/bin/sail up -d ``` -------------------------------- ### Install Bagisto Package Generator Source: https://devdocs.bagisto.com/package-development/getting-started Installs the Bagisto Package Generator tool via Composer. This tool simplifies the creation of new Bagisto packages by automating the setup of directory structures and essential files. ```bash composer require bagisto/bagisto-package-generator ``` -------------------------------- ### Configure Bagisto Environment Source: https://devdocs.bagisto.com/getting-started/installation.html Copies the example environment file to .env and generates a new application key, essential for security and configuration. ```bash cp .env.example .env php artisan key:generate ``` -------------------------------- ### Configure Environment and Generate Key Source: https://context7_llms Steps to copy the example environment file and generate a new application key for Bagisto. ```bash cp .env.example .env php artisan key:generate ``` -------------------------------- ### Serve Bagisto Application Locally Source: https://devdocs.bagisto.com/getting-started/installation.html Command to start the local development server for your Bagisto store. After running this, you can access your store via the specified URL in your web browser. ```bash php artisan serve ``` -------------------------------- ### Run Bagisto Development Server Source: https://devdocs.bagisto.com/getting-started/installation.html Starts the built-in development server for Bagisto using the artisan command. This is used for accessing the store in a development environment. ```bash php artisan serve ``` -------------------------------- ### Varnish ESI Include Example Source: https://context7_llms An example of how to include a dynamic view fragment using Varnish's ESI syntax in an HTML template. This injects server-side content for immediate display. ```html ``` -------------------------------- ### Bagisto LLMs Installation Guide Source: https://tailwindcss.com/docs/installation Provides instructions for installing Bagisto LLMs. This section typically outlines prerequisites and the steps required to get the library up and running. ```markdown `/docs/installation` ``` -------------------------------- ### Start Bagisto Development Server Source: https://context7_llms Starts the built-in development server for a Bagisto project using the Artisan command. This command is used in development environments to serve the application locally. ```bash php artisan serve ``` -------------------------------- ### Install Flutter Dependencies Source: https://context7_llms Installs the necessary packages and dependencies for the Flutter project using the `flutter pub get` command. This command reads the `pubspec.yaml` file and downloads the required libraries. ```bash cd flutter pub get ``` -------------------------------- ### Job Queuing for Indexing in PHP Source: https://context7_llms Shows examples of dispatching individual and chained jobs for indexing operations, ensuring background processing and maintaining application responsiveness. ```php // Jobs are queued to prevent blocking user interactions UpdateCreateElasticSearchIndexJob::dispatch($productIds); // Chained jobs ensure proper sequence Bus::chain([ new UpdateCreateInventoryIndexJob($productIds), new UpdateCreatePriceIndexJob($productIds), ])->dispatch(); ``` -------------------------------- ### Run Bagisto Docker Container Source: https://context7_llms Docker command to start a Bagisto container, mapping port 80 for access. ```bash docker run -it -d -p 80:80 webkul/bagisto:2.3.6 ``` -------------------------------- ### Calculate Week Range - PHP Source: https://context7_llms Calculates the start or end date of a week based on a given date. The `$day` parameter determines whether to get the start (0) or end (1) of the week. ```php $weekStart = core()->xWeekRange($date, 0); // Week start (Sunday) $weekEnd = core()->xWeekRange($date, 1); // Week end (Saturday) Parameters: - $date: Date string to calculate from - $day: 0 for week start, 1 for week end ``` -------------------------------- ### Create Bagisto Project with Composer Source: https://devdocs.bagisto.com/getting-started/installation.html This command initiates a new Bagisto project using Composer, downloading the latest version and setting up the project structure. ```bash composer create-project bagisto/bagisto my-bagisto-store ``` -------------------------------- ### Quick Installation of Bagisto via Composer Source: https://context7_llms Command to create a new Bagisto project using Composer, initiating the recommended installation process. ```bash composer create-project bagisto/bagisto my-bagisto-store ``` -------------------------------- ### Get Product Type Validation Rules (PHP) Source: https://context7_llms Defines validation rules for product type-specific fields used during product creation and updates. Examples include rules for subscription product attributes like frequency and discount, and downloadable product link details. ```php public function getTypeValidationRules(): array { // Returns array of validation rules for product type specific fields // Used during product creation and update processes } ``` ```php public function getTypeValidationRules(): array { return [ 'subscription_frequency' => 'required|in:weekly,monthly,quarterly,yearly', 'subscription_discount' => 'nullable|numeric|min:0|max:100', 'subscription_duration' => 'nullable|integer|min:1', 'subscription_trial_period' => 'nullable|integer|min:0', 'subscription_slots' => 'required|integer|min:1', ]; } ``` ```php public function getTypeValidationRules(): array { return [ 'downloadable_links.*.type' => 'required', 'downloadable_links.*.file' => 'required_if:type,==,file', 'downloadable_links.*.file_name' => 'required_if:type,==,file', 'downloadable_links.*.url' => 'required_if:type,==,url', 'downloadable_links.*.downloads' => 'required', 'downloadable_links.*.sort_order' => 'required', ]; } ``` -------------------------------- ### Verify Elasticsearch Installation (HTTP GET) Source: https://context7_llms Tests if Elasticsearch is running and accessible on the default port 9200. It expects a JSON response with cluster information. Ensure Elasticsearch is installed and running. ```shell curl -X GET 'http://localhost:9200' ``` -------------------------------- ### Start Build Process Source: https://tailwindcss.com/docs/installation Initiate the project's build process using your configured npm script. This command compiles your assets and starts the development server. ```bash npm run dev ``` -------------------------------- ### Bagisto Database Migration and Storage Setup Source: https://devdocs.bagisto.com/getting-started/installation.html This snippet covers essential Artisan commands for initializing a Bagisto project. It includes migrating the database with seed data and linking the storage directory for asset access. Ensure your .env file is correctly configured for database connection before running these commands. ```bash php artisan migrate:fresh --seed php artisan storage:link php artisan optimize:clear ``` -------------------------------- ### Get Channel Timestamp Source: https://context7_llms Gets a timestamp adjusted according to the channel's configured timezone. This is important for accurate time-based operations across different regions. ```php $timestamp = core()->channelTimeStamp($channel); ``` -------------------------------- ### Navigate to Bagisto Project Directory Source: https://devdocs.bagisto.com/getting-started/installation.html Change the current directory to the newly created Bagisto project folder to execute subsequent commands. ```bash cd my-bagisto-store ``` -------------------------------- ### Run Octane in Production Mode Source: https://context7_llms Starts the Octane server for production use. This command starts the server without the file watching capability, suitable for deployment. ```bash php artisan octane:start --workers=8 --task-workers=6 ``` -------------------------------- ### Clone Bagisto Mobile App Repository Source: https://devdocs.bagisto.com/getting-started/installation.html Clones the official Bagisto eCommerce mobile application repository from GitHub. This is the first step in setting up the mobile app. ```bash git clone https://github.com/bagisto/opensource-ecommerce-mobile-app.git ``` -------------------------------- ### Bagisto PHPDoc Example Source: https://context7_llms An example of PHPDoc block used in Bagisto for documenting methods, including parameters and return types, adhering to standards like PSR-2. ```php /** * Register a service with CoreServiceProvider. * * @param string|array $loader * @param \Closure|string|null $concrete * @param bool $shared * @return void */ protected function registerFacades($loader, $concrete = null, $shared = false): void { // Implementation here } ``` -------------------------------- ### Get Current Currency Code Source: https://context7_llms Retrieves the code of the currency that is currently active for the channel. ```php $currentCurrencyCode = core()->getCurrentCurrencyCode(); ``` -------------------------------- ### Install Dependencies via Composer Source: https://devdocs.bagisto.com/getting-started/installation.html After downloading or cloning Bagisto, this command installs all necessary project dependencies defined in composer.json. ```bash composer install ``` -------------------------------- ### Create Bagisto Project (Alternative Composer Method) Source: https://devdocs.bagisto.com/getting-started/installation.html This command creates a new Bagisto project without specifying a project name, useful for immediate setup in the current directory. ```bash composer create-project bagisto/bagisto ``` -------------------------------- ### Get All Currencies Source: https://context7_llms Retrieves a collection of all available currency models in the system. This is fundamental for multi-currency functionalities. ```php $currencies = core()->getAllCurrencies(); ``` -------------------------------- ### Start Vite Development Server for Theme Source: https://context7_llms Initiates the Vite development server from within your theme package directory. This command enables features like hot module replacement, allowing you to see changes instantly as you develop your theme's assets. ```bash # Make sure you're in your package directory cd packages/Webkul/CustomTheme # Start the development server npm run dev ``` -------------------------------- ### Color Field Example in Bagisto Configuration Source: https://context7_llms Demonstrates the 'color' field type in Bagisto, which provides a color picker interface. This example sets a default color for a return button. ```php return [ // ... [ 'key' => 'rma.settings.appearance', 'name' => 'Appearance Settings', 'sort' => 1, 'fields' => [ [ 'name' => 'return_button_color', 'title' => 'Return Button Color', 'type' => 'color', 'default' => '#007bff', ], ], ], // ... ]; ``` -------------------------------- ### Configure Bagisto .env File Source: https://cloudkul.com/blog/how-to-setup-bagisto-on-aws/ These commands copy the example environment file to .env and then open it for editing. The .env file is where you'll input your database credentials and domain name for Bagisto to connect to your database and serve content correctly. ```bash sudo cp .env.example .env sudo nano .env ``` -------------------------------- ### Get Guest Customer Group - PHP Source: https://context7_llms Retrieves the configuration for the customer group designated for guest users. ```php $guestGroup = core()->getGuestCustomerGroup(); ``` -------------------------------- ### Run Bagisto REST API Installation Command Source: https://context7_llms Executes the Bagisto REST API installation command to publish configuration files, set up Swagger documentation, and configure authentication routes. This command prepares the API for use. ```bash php artisan bagisto-rest-api:install ``` -------------------------------- ### Install Bagisto using Laravel Sail Artisan Command Source: https://context7_llms Executes the Bagisto installation command using Laravel Sail's Artisan. This command likely handles the final setup and configuration steps for the Bagisto application within the Sail environment. ```bash vendor/bin/sail artisan bagisto:install ``` -------------------------------- ### Pagefind Search Initialization and Event Handling Source: https://docs.docker.com/install/ This script initializes the Pagefind search library, configures its ranking parameters, and sets up event listeners for a search bar. It handles search queries, displays results, and tracks user clicks on search result links using Heap analytics. ```javascript window.addEventListener("load", async function () { const pagefind = await import("/pagefind/pagefind.js"); await pagefind.options({ ranking: { termFrequency: 0.2, pageLength: 0.75, termSaturation: 1.4, termSimilarity: 6.0 }, }); const searchBarInput = document.querySelector("#search-bar-input"); const searchBarResults = document.querySelector( "#search-bar-results", ); async function search(e) { const query = e.target.value; if (query === "") { searchBarResults.innerHTML = `
Start typing to search or try .
`; return; } const search = await pagefind.debouncedSearch(query); if (search === null) { return; } else { const resultsLength = search.results.length const resultsData = await Promise.all(search.results.slice(0, 5).map(r => r.data())); const results = resultsData.map((item, index) => ({...item, index: index + 1})); if (query) { searchBarResults.classList.remove("hidden"); } else { searchBarResults.classList.add("hidden"); } let resultsHTML = `
${resultsLength} results
`; resultsHTML += results .map((item) => { return `
${item.meta.title}

…${item.excerpt}…

`; }) .join(""); if (resultsLength > 5) { resultsHTML += ``; } searchBarResults.innerHTML = resultsHTML; } } searchBarInput.addEventListener("input", search); if (window.heap !== undefined) { searchBarResults.addEventListener('click', function (event) { if (event.target.tagName === 'A' && event.target.closest('.link')) { const searchQuery = event.target.getAttribute('data-query'); const resultIndex = event.target.getAttribute('data-index'); const url = new URL(event.target.href); const properties = { docs_search_target_path: url.pathname, docs_search_target_title: event.target.textContent, docs_search_query_text: searchQuery, docs_search_target_index: resultIndex, docs_search_source_path: window.location.pathname, docs_search_source_title: document.title, }; heap.track("Docs - Search - Click - Result Link", properties); } }); } }); ``` -------------------------------- ### Example Custom Theme Blade Template Source: https://context7_llms This Blade template provides an example structure for a custom theme's home page, utilizing Bagisto's shop component layouts and styling. ```blade Custom Theme Home

🎨 Custom Theme Package

This theme is now powered by a professional package structure!

📦 Package Benefits

Better organization, easy distribution, and professional development workflow.

``` -------------------------------- ### GraphQL API Introduction Source: https://context7_llms Overview of the Bagisto GraphQL API, its benefits for headless commerce, mobile apps, and custom storefronts. ```APIDOC ## GraphQL API Overview ### Description The Bagisto GraphQL API offers a flexible and efficient way to fetch data, ideal for headless commerce setups, mobile applications, and custom storefronts. It allows clients to request precisely the data they need, reducing over-fetching and improving performance. ### Key Features - Single endpoint for all operations - Flexible query structure - Real-time subscriptions support - Built on Laravel Lighthouse - Type-safe schema with introspection ### Getting Started Refer to the [GraphQL API Guide](./graphql-api) for detailed setup and usage instructions. ``` -------------------------------- ### Shop View Structure Example Source: https://context7_llms This provides an example of the basic structure for a shop view in Bagisto, using a Blade component for layout integration. It demonstrates how to set a page title and include content. ```blade RMA Shop Listing Title RMA Shop Listing Content ``` -------------------------------- ### Install Sail for Fresh Project Clone Source: https://devdocs.bagisto.com/getting-started/installation.html Installs the Sail package for a fresh Bagisto project clone using Docker. It requires Docker to be installed and running. ```bash docker run --rm \ -u "$(id -u):$(id -g)" \ -v "$(pwd):/var/www/html" \ -w /var/www/html \ laravelsail/php83-composer:latest \ composer require laravel/sail --dev --ignore-platform-reqs ``` -------------------------------- ### Build and Start Laravel Sail Services for Bagisto Source: https://context7_llms Builds the Docker containers for Laravel Sail without a cache and then starts the services in detached mode. This prepares and launches the development environment for Bagisto. ```bash vendor/bin/sail build --no-cache vendor/bin/sail up -d ``` -------------------------------- ### Create Vite Project and Install Tailwind CSS Source: https://tailwindcss.com/docs/installation Demonstrates the initial steps to set up a new Vite project and install the necessary Tailwind CSS packages, including the Vite plugin. ```bash npm create vite@latest my-project cd my-project npm install tailwindcss @tailwindcss/vite ``` -------------------------------- ### Clear Bagisto Application Cache Source: https://devdocs.bagisto.com/package-development/getting-started Executes the Artisan command to optimize and clear the application cache after package setup. ```bash php artisan optimize:clear ``` -------------------------------- ### Get Channel's Base Currency Code Source: https://context7_llms Retrieves the currency code of the base currency for the current channel. ```php $channelBaseCurrencyCode = core()->getChannelBaseCurrencyCode(); ``` -------------------------------- ### REST API Installation Source: https://context7_llms Steps to install the Bagisto REST API package and configure environment settings. ```APIDOC ## REST API Installation ### Step 1: Install the Package Install the REST API package via Composer: ```bash composer require bagisto/rest-api ``` ### Step 2: Environment Configuration Add the following configuration to your `.env` file, replacing `http://localhost/public` with your actual domain URL: ```properties SANCTUM_STATEFUL_DOMAINS=http://localhost/public ``` ### Step 3: Run Installation Command Run the following Artisan command to publish configuration files, set up Swagger documentation, and configure authentication routes: ```bash php artisan bagisto-rest-api:install ``` ``` -------------------------------- ### Get All Locales Source: https://context7_llms Retrieves a collection of all available locale models in the system. This function is essential for managing multi-lingual support. ```php $locales = core()->getAllLocales(); // Returns: Collection of locale models ``` -------------------------------- ### Run Bagisto Docker Container Source: https://devdocs.bagisto.com/getting-started/installation.html Starts a Bagisto Docker container, mapping port 80 on the host to port 80 in the container. If port 80 is in use, an alternative port like 8082 can be used. ```bash docker run -it -d -p 80:80 webkul/bagisto:2.3.6 docker run -it -d -p 8082:80 webkul/bagisto:2.3.6 ``` -------------------------------- ### Get Tax Category by ID - PHP Source: https://context7_llms Retrieves a tax category based on its ID, utilizing caching for improved performance. ```php $taxCategory = core()->getTaxCategoryById($id); ``` -------------------------------- ### Install Bagisto Application Source: https://cloudkul.com/blog/how-to-setup-bagisto-on-aws/ This command executes the Bagisto installation artisan command. It performs the necessary setup for the Bagisto application, including database migrations and other initial configurations. ```bash sudo php artisan bagisto:install ``` -------------------------------- ### Install MySQL Server and Create Database (Local) Source: https://cloudkul.com/blog/how-to-setup-bagisto-on-aws/ These commands install the MySQL server, connect as the root user, create a new database named 'bagistodb', create a dedicated user 'bagistouser' with a password, grant all privileges on the new database to this user, and set a global variable to enable binary logging trust for function creators. Finally, it flushes privileges and exits. ```bash sudo apt-get install mysql-server sudo mysql -u root -p CREATE DATABASE bagistodb; CREATE USER 'bagistouser'@'localhost' IDENTIFIED BY 'bagisto'; GRANT ALL ON bagistodb.* TO 'bagistouser'@'localhost' WITH GRANT OPTION; SET GLOBAL log_bin_trust_function_creators = 1; flush privileges; exit; ``` -------------------------------- ### Get Grouped States by Countries - PHP Source: https://context7_llms Retrieves all states organized and grouped by their respective countries. This is a Geographic Data Helper. ```php $groupedStates = core()->groupedStatesByCountries(); ``` -------------------------------- ### Getting Default Channel Code (PHP) Source: https://context7_llms Retrieves the code identifier for the default channel from the application's configuration settings. ```php $defaultCode = core()->getDefaultChannelCode(); ``` -------------------------------- ### Create Feature Branch (Bash) Source: https://context7_llms Demonstrates how to create a new Git branch for feature development, starting from the 'master' branch. ```bash # For new features and breaking changes git checkout master git checkout -b feature/new-functionality ``` -------------------------------- ### GraphQL API - Installation Source: https://context7_llms Instructions for installing and configuring the Bagisto GraphQL API package, including Composer installation, middleware configuration, environment variables, and publishing assets. ```APIDOC # GraphQL API Bagisto's GraphQL API delivers a modern, flexible approach to e-commerce data access. Built on Laravel Lighthouse, it provides efficient querying capabilities perfect for headless commerce, mobile apps, and modern frontend frameworks. ## 🚀 Quick Start ### Live Demo Experience the power of GraphQL with our interactive demo: 🌐 [**GraphQL API Demo**](https://demo.bagisto.com/mobikul-common/graphiql) - Test queries and explore the schema in real-time ::: tip Interactive Playground The demo includes GraphiQL playground where you can write queries, explore documentation, and see real-time results. ::: ## 📦 Installation ### Step 1: Install the Package Install the GraphQL API package via Composer: ```bash composer require bagisto/graphql-api ``` ### Step 2: Configure Middleware Update your `bootstrap/app.php` file to ensure proper session handling: ```php use Illuminate\Session\Middleware\StartSession; use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse; return Application::configure(basePath: dirname(__DIR__)) ->withMiddleware(function (Middleware $middleware) { // ... rest of middleware setup /** * Remove session and cookie middleware from the 'web' middleware group. */ $middleware->removeFromGroup('web', [StartSession::class, AddQueuedCookiesToResponse::class]); /** * Adding session and cookie middleware globally to apply across non-web routes (e.g. GraphQL) */ $middleware->append([StartSession::class, AddQueuedCookiesToResponse::class]); }) // ... rest of configuration ``` ::: warning Important Configuration This middleware configuration ensures sessions work properly with GraphQL endpoints, which is essential for authentication and cart management. ::: ### Step 3: Environment Configuration Add the following JWT settings to your `.env` file: ```properties # JWT Configuration for GraphQL API JWT_TTL=525600 JWT_SHOW_BLACKLIST_EXCEPTION=true # API Key for mobile/frontend authentication MOBIKUL_API_KEY=your-secure-api-key-here ``` ::: tip Security Best Practice Generate a strong, unique API key for production environments. This key should be kept secure and only shared with your development team. ::: ### Step 4: Install and Publish Assets Run the installation command to set up configurations: ```bash php artisan bagisto-graphql:install ``` This command will: - Publish GraphQL schema files - Set up authentication routes - Configure GraphiQL playground ``` -------------------------------- ### Run Bagisto Installation Artisan Command Source: https://context7_llms Artisan command to initiate the interactive Bagisto installation process, including database and admin configuration. ```bash php artisan bagisto:install ``` -------------------------------- ### Get Singleton Instance - PHP Source: https://context7_llms Retrieves singleton instances of classes from the service container, ensuring only one instance of a class is active. ```php $instance = core()->getSingletonInstance($className); ``` -------------------------------- ### Get Maximum Upload Size - PHP Source: https://context7_llms Retrieves the maximum file upload size configured in PHP's settings (upload_max_filesize). ```php $maxSize = core()->getMaxUploadSize(); // Returns: Value from ini_get('upload_max_filesize') ``` -------------------------------- ### Install Bagisto Source: https://devdocs.bagisto.com/getting-started/installation.html Installs Bagisto using the Sail artisan command. This command should be run after setting up Sail and configuring the environment. ```bash vendor/bin/sail artisan bagisto:install ``` -------------------------------- ### Node Dependencies Setup (package.json) Source: https://context7_llms Defines project metadata, scripts for development and building, and lists development and regular dependencies for a custom theme package. Includes core Vite, Laravel Vite plugin, Vue, Tailwind CSS, and PostCSS among others. ```json { "name": "custom-theme", "private": true, "description": "Custom Theme Package for Bagisto", "scripts": { "dev": "vite", "build": "vite build" }, "devDependencies": { "autoprefixer": "^10.4.14", "axios": "^1.1.2", "laravel-vite-plugin": "^0.7.2", "postcss": "^8.4.23", "tailwindcss": "^3.3.2", "vite": "^4.0.0", "vue": "^3.2.47" }, "dependencies": { "@vee-validate/i18n": "^4.9.1", "@vee-validate/rules": "^4.9.1", "mitt": "^3.0.0", "vee-validate": "^4.9.1", "vue-flatpickr": "^2.3.0" } } ``` -------------------------------- ### Get Base Currency Model Source: https://context7_llms Retrieves the application's base currency model. This is the default currency against which others are often measured. ```php $baseCurrency = core()->getBaseCurrency(); ``` -------------------------------- ### Get Current Locale Source: https://context7_llms Retrieves the currently active locale for the application. This is useful for setting the correct language context for user interactions. ```php $currentLocale = core()->getCurrentLocale(); ``` -------------------------------- ### Clone Bagisto Docker Repository Source: https://devdocs.bagisto.com/getting-started/installation.html Clones the official Bagisto Docker repository to set up a local environment for development using Docker Compose. It then changes the directory into the cloned repository. ```bash git clone https://github.com/bagisto/bagisto-docker.git bagisto-docker cd bagisto-docker ```