-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
01358bc
commit 1cdc450
Showing
26 changed files
with
1,448 additions
and
3,357 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.temp | ||
.cache | ||
temp | ||
cache | ||
dist | ||
_site | ||
!.vitepress |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import {createRequire} from 'module'; | ||
|
||
import {defineConfig} from '@lando/vitepress-theme-default-plus/config'; | ||
|
||
const require = createRequire(import.meta.url); | ||
|
||
const {name, version} = require('../../package.json'); | ||
const landoPlugin = name.replace('@lando/', ''); | ||
|
||
export default defineConfig({ | ||
title: 'Lando Laravel Plugin', | ||
description: 'The offical Lando plugin for Laravel.', | ||
landoDocs: 3, | ||
landoPlugin, | ||
version, | ||
head: [ | ||
['meta', {name: 'viewport', content: 'width=device-width, initial-scale=1'}], | ||
['link', {rel: 'icon', href: '/laravel/favicon.ico', size: 'any'}], | ||
['link', {rel: 'icon', href: '/laravel/favicon.svg', type: 'image/svg+xml'}], | ||
], | ||
themeConfig: { | ||
sidebar: sidebar(), | ||
}, | ||
}); | ||
|
||
function sidebar() { | ||
return [ | ||
{ | ||
text: 'Introduction', | ||
collapsed: false, | ||
items: [ | ||
{text: 'Overview', link: '/'}, | ||
{text: 'Installation', link: '/install'}, | ||
{text: 'Usage', link: '/config'}, | ||
], | ||
}, | ||
{ | ||
text: 'Contribution', | ||
collapsed: false, | ||
items: [ | ||
{text: 'Development', link: '/development'}, | ||
{text: 'Team', link: '/team'}, | ||
], | ||
}, | ||
{ | ||
text: 'Help & Support', | ||
collapsed: false, | ||
items: [ | ||
{text: 'GitHub', link: 'https://github.com/lando/laravel/issues/new/choose'}, | ||
{text: 'Slack', link: 'https://www.launchpass.com/devwithlando'}, | ||
{text: 'Contact Us', link: '/support'}, | ||
], | ||
}, | ||
{text: 'Examples', link: 'https://github.com/lando/laravel/tree/main/examples'}, | ||
]; | ||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import VPLTheme from '@lando/vitepress-theme-default-plus'; | ||
|
||
export default VPLTheme; |
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ description: Learn how to get started with the Lando Laravel recipe. | |
|
||
Before you get started with this recipe, we assume that you have: | ||
|
||
1. [Installed Lando](https://docs.lando.dev/basics/installation.html) and gotten familiar with [its basics](https://docs.lando.dev/basics/). | ||
2. [Initialized](https://docs.lando.dev/basics/init.html) a [Landofile](https://docs.lando.dev/config/lando.html) for your codebase for use with this recipe. | ||
3. Read about the various [services](https://docs.lando.dev/config/services.html), [tooling](https://docs.lando.dev/config/tooling.html), [events](https://docs.lando.dev/config/events.html) and [routing](https://docs.lando.dev/config/proxy.html) Lando offers. | ||
1. [Installed Lando](https://docs.lando.dev/getting-started/installation.html) and gotten familiar with [its basics](https://docs.lando.dev/cli/). | ||
2. [Initialized](https://docs.lando.dev/cli/init.html) a [Landofile](https://docs.lando.dev/core/v3) for your codebase for use with this recipe. | ||
3. Read about the various [services](https://docs.lando.dev/core/v3/lando-service.html), [tooling](https://docs.lando.dev/core/v3/tooling.html), [events](https://docs.lando.dev/core/v3/events.html) and [routing](https://docs.lando.dev/core/v3/proxy.html) Lando offers. | ||
|
||
## Quick Start | ||
|
||
|
@@ -35,44 +35,3 @@ lando start | |
lando info | ||
``` | ||
|
||
## Custom Installation | ||
|
||
This plugin is included with Lando by default. That means if you have Lando version `3.0.8` or higher then this plugin is already installed! | ||
|
||
However if you would like to manually install the plugin, update it to the bleeding edge or install a particular version then use the below. Note that this installation method requires Lando `3.5.0+`. | ||
|
||
:::: code-group | ||
::: code-group-item LANDO 3.21+ | ||
```bash:no-line-numbers | ||
lando plugin-add @lando/laravel | ||
``` | ||
::: | ||
::: code-group-item HYPERDRIVE | ||
```bash:no-line-numbers | ||
# @TODO | ||
# @NOTE: This doesn't actaully work yet | ||
hyperdrive install @lando/laravel | ||
``` | ||
::: | ||
::: code-group-item DOCKER | ||
```bash:no-line-numbers | ||
# Ensure you have a global plugins directory | ||
mkdir -p ~/.lando/plugins | ||
# Install plugin | ||
# NOTE: Modify the "npm install @lando/laravel" line to install a particular version eg | ||
# npm install @lando/[email protected] | ||
docker run --rm -it -v ${HOME}/.lando/plugins:/plugins -w /tmp node:14-alpine sh -c \ | ||
"npm init -y \ | ||
&& npm install @lando/laravel --production --flat --no-default-rc --no-lockfile --link-duplicates \ | ||
&& npm install --production --cwd /tmp/node_modules/@lando/laravel \ | ||
&& mkdir -p /plugins/@lando \ | ||
&& mv --force /tmp/node_modules/@lando/laravel /plugins/@lando/laravel" | ||
# Rebuild the plugin cache | ||
lando --clear | ||
``` | ||
::: | ||
:::: | ||
|
||
You should be able to verify the plugin is installed by running `lando config --path plugins` and checking for `@lando/laravel`. This command will also show you _where_ the plugin is being loaded from. |
Oops, something went wrong.