Download the PHP package johntrickett86/tall-mobile without Composer
On this page you can find all versions of the php package johntrickett86/tall-mobile. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download johntrickett86/tall-mobile
More information about johntrickett86/tall-mobile
Files in johntrickett86/tall-mobile
Package tall-mobile
Short Description TALL preset for Laravel with mobile UI components
License MIT
Informations about the package tall-mobile
Laravel TALL Preset with Mobile Elements
The TALL stack preset you know and love - with a few extra mobile elements.
If you're not familiar with the name, it's an acronym that describes the main technologies involved in the stack:
Some notable features of this package include:
- Everything you know and love from the Laravel TALL Preset package
- A mobile UI experience
- Floating action button
- Theme selector (System, Light, Dark)
- Ability to hide header and toolbar when scrolling
Note: If you're looking for an application boilerplate that supports the TALL stack, you should check out Laravel Jetstream. It comes with authentication scaffolding, account management, teams support.
Installation
This preset is intended to be installed into a fresh Laravel application. Follow Laravel's installation instructions to ensure you have a working environment before continuing.
Installation (without auth)
Then simply run the following commands:
Installation (with auth)
If you would like to install the preset and its auth scaffolding in a fresh Laravel application, make sure to use the --auth
flag on the ui
command:
Some notable features of the authentication scaffolding include:
- Powered by Livewire components and single action controllers
- Bundled with pre-written tests
All routes, components, controllers and tests are published to your application. The idea behind this is that you have full control over every aspect of the scaffolding in your own app, removing the need to dig around in the vendor folder to figure out how things are working.
CSS purging
Tailwind uses PurgeCSS to remove any unused classes from your production CSS builds. You can modify or remove this behaviour in the purge
section of your tailwind.config.js
file. For more information, please see the Tailwind documentation.
Removing the package
If you don't want to keep this package installed once you've installed the preset, you can safely remove it. Unlike the default Laravel presets, this one publishes all the auth logic to your project's /app
directory, so it's fully redundant.
A note on pagination
If you are using pagination, you set the default pagination views to the ones provided in the boot
method of a service provider:
Mobile Elements
Icons
This package uses the Blade Tabler Icons package by Ryan Chandler.
You'll notice that we pass icon names through various props - it is Tabler icon names that we are using, however you can use any icon set you like.
Check out the available icons on the Tabler Icons website.
Header Components
There are two header components included in this package.
Main Header
The first is the mobile-header-main
component, which is the default header component designed to be show on the main page of the application.
It includes a section for customising menu items, including a dropdown menu:
This component has a prop that can be used to dynamically hide the header when scrolling:
Page Header
The second header component is the mobile-header-page
component, which also allows for customised header items. You can use this as a template to create additional page headers and rename them accordingly.
This component has the same prop as the main header, but also the ability to customise the title:
Toolbar
The toolbar component is designed to be used at the bottom of the page and includes an optional floating action button.
Toolbar Navigation Items
You can update the toolbar items by updating the mobile-toolbar blade component:
Floating Action Button
The floating action button is an optional element that can be included in the toolbar. It is designed to be used as a primary action button for the page.
There are some props you can pass to the component:
Important note about modals:
When specifying a modal name, this should match a blade component in the
resources/views/modals
directory. We have put a blank one in there to get you going.
Settings Page
We have also included a skeleton settings page.
User and Avatar
If a user is logged in, the user's name and avatar will be displayed in the header. If no user is logged in, a default avatar will be shown.
We have added a migration to include 'avatar_url' to the users table.
Remember: To use the avatar_url, update your user model to make this field fillable!
Theme Selector
Switches the theme between System, Light and Dark.
Theme Customisation
The theme is customisable by updating the tailwind.config.js
file. We have based the colors on named colors which can be easily updated:
Replacing the primary or light color will reflect in the current Tailwind styles.
Credits
- John Trickett
- Dan Harrin for the TALL stack preset package this is based on
- Liam Hammett for the TALL stack preset package this is based on
- Ryan Chandler for the TALL stack preset package this is based on and for the wonderful Blade Tabler Icons package
- Tailwind UI for the default authentication and pagination views
- All Contributors
All versions of tall-mobile with dependencies
laravel/ui Version ^4.5
illuminate/support Version ^11.0
ryangjchandler/blade-tabler-icons Version ^2.3