cornell-custom-dev/cd-laravel-base

Cornell Custom Dev Laravel starter kit for Livewire.

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 1

Language:Blade

Type:project

pkg:composer/cornell-custom-dev/cd-laravel-base

dev-main 2025-11-25 14:48 UTC

This package is auto-updated.

Last update: 2025-11-26 21:27:17 UTC


README

Setup

Run composer setup after cloning to set up your environment.

FluxPro components will not be accessible until you provide Flux repo credentials in auth.json.

Note: If you run composer setup inside the lando container you will need to provide a GitHub Token to access the private https://github.com/CornellCustomDev/cds repository.

Layout

The Layout is built with the Cornell Design System: https://cornellcustomdev.github.io/cds-docs/

Edit the layout starting at resources/views/components/cds/layout/app.blade.php

Components

Components are built with FluxPro. Examples of components are at resources/views/examples/form.blade.php

Available components:

Using components

Components are used in blade files with the <x-cds syntax. For example, to use the text input forms component, you would write:

<x-cds.forms.input
    name="email"
    label="Email"
/>

You can also pass additional attributes to the component and they will be applied to the contained input element ("required" in this case). Named slots can also be used to fill attributes. For example:

<x-cds.forms.input name="name" label="Name" required>
    <x-slot:description>
        Please enter your full name.
    </x-slot:description>
</x-cds.forms.input>

Common and defaulted attributes can be found in the component's blade file, generally as @prop definitions so that an IDE can provide autocomplete.

The underlying Flux component documentation is linked from the blade file and should be consulted for additional options and usage.