### Project Setup and Migration Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html These commands are essential for completing the project setup after installing the Material Dashboard preset. It includes dumping autoloaders, configuring the database connection, and migrating the database with seeders. ```Shell composer dump-autoload # Add your DB info in .env php artisan migrate:fresh --seed ``` -------------------------------- ### Install Laravel UI and Material Preset Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Commands to install the Laravel UI package and then apply the Material Dashboard preset for authentication scaffolding and assets. ```bash composer require laravel/ui php artisan ui vue --auth php artisan ui material ``` -------------------------------- ### Install Laravel UI and Authentication Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html This snippet demonstrates the Composer commands to install the Laravel UI package and set up authentication scaffolding using Vue.js. ```Shell composer require laravel/ui php artisan ui vue --auth ``` -------------------------------- ### Install Material Dashboard Preset via Archive Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/README.md This snippet explains how to install the Material Dashboard preset by manually adding it as an archive. It involves creating a presets folder, placing the downloaded archive, updating composer.json and app.php, and then running the preset installation command. ```Bash mkdir presets // Download and unzip the repo archive into the 'presets' folder and rename it to 'material' // Update composer.json: // "autoload": { // "psr-4": { // "LaravelFrontendPresets\\MaterialPreset\\": "presets/material/src" // } // }, // "autoload-dev": { // "psr-4": { // "LaravelFrontendPresets\\MaterialPreset\\": "presets/material/src" // } // } // Add to config/app.php: // 'providers' => [ // LaravelFrontendPresets\MaterialPreset\MaterialPresetServiceProvider::class // ] composer require laravel/ui composer dump-autoload php artisan ui material // Add database credentials to .env file php artisan migrate:fresh --seed ``` -------------------------------- ### Migrate Database with Seeders Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Command to refresh the database, applying all migrations and running seeders to populate the database with initial data. ```bash php artisan migrate:fresh --seed ``` -------------------------------- ### Install Material Dashboard Preset Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html This command installs the Material Dashboard preset for Laravel, which includes all necessary assets and custom authentication views. ```Shell composer require laravel-frontend-presets/material php artisan ui material ``` -------------------------------- ### HTML5 Boilerplate for Material Dashboard Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html A basic HTML5 document structure including essential meta tags, title, and links to stylesheets for the Material Dashboard. ```html Material Dashboard by Creative Tim ``` -------------------------------- ### Register Material Preset Service Provider Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Adds the Material Preset's Service Provider to the `config/app.php` file for integration with Laravel. ```php config/app.php: 'providers' => [ ... LaravelFrontendPresets\MaterialPreset\MaterialPresetServiceProvider::class ] ``` -------------------------------- ### Install Material Dashboard Preset via Composer Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/README.md This snippet details the steps to install the Material Dashboard preset for Laravel using Composer. It involves requiring the package, running a command to apply the preset, and updating the database. ```Bash cd your-laravel-app composer require laravel/ui composer require laravel-frontend-presets/material-dashboard php artisan ui material composer dump-autoload php artisan migrate:fresh --seed ``` -------------------------------- ### Bootstrap Nav Pills Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/navs.html Demonstrates how to create a set of navigation pills using Bootstrap's .nav and .nav-pills classes. This example includes two navigation items, 'My Profile' and 'Dashboard', with active and inactive states. ```HTML ``` -------------------------------- ### Include Bootstrap CDN CSS and JS Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Links to Bootstrap's CSS and JavaScript files hosted on a CDN, allowing for quick integration without local downloads. ```html ``` -------------------------------- ### three.js Integration Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/overview.html Demonstrates the basic setup for three.js, a JavaScript 3D library. This enables the creation and display of 3D graphics within a web browser. ```JavaScript import * as THREE from 'three'; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); const renderer = new THREE.WebGLRenderer(); renderer.setSize( window.innerWidth, window.innerHeight ); document.body.appendChild( renderer.domElement ); const geometry = new THREE.BoxGeometry(); const material = new THREE.MeshBasicMaterial( { color: 0x00ff00 } ); const cube = new THREE.Mesh( geometry, material ); scene.add( cube ); camera.position.z = 5; function animate() { requestAnimationFrame( animate ); cube.rotation.x += 0.01; cube.rotation.y += 0.01; renderer.render( scene, camera ); } ``` -------------------------------- ### Include Material Dashboard JavaScript Files Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Includes the core JavaScript files required for Material Dashboard components, including Popper.js and custom plugins. ```html ``` -------------------------------- ### Include Material Dashboard CSS Files Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Links to the necessary CSS files for the Material Dashboard, including Google Fonts, Nucleo Icons, and the main dashboard stylesheet. ```html ``` -------------------------------- ### Configure Composer Autoload for Material Preset Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Modifies the `composer.json` file to include the Material Preset's namespace for PSR-4 autoloading. ```json { "autoload": { "psr-4": { "LaravelFrontendPresets\MaterialPreset\": "presets/material/src" } }, "autoload-dev": { "psr-4": { "LaravelFrontendPresets\MaterialPreset\": "presets/material/src" } } } ``` -------------------------------- ### Mixed Chart Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/plugins/charts.html Contains the HTML setup for a mixed chart, which can display different chart types (e.g., bars and lines) on the same canvas. The canvas ID is 'mixed-chart'. ```HTML
``` -------------------------------- ### Dropzone JS Form Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/plugins/dropzone.html This HTML snippet demonstrates a basic form setup for Dropzone JS. It includes the necessary 'dropzone' class and fallback input for file uploads, along with an ID for JavaScript initialization. ```html
``` -------------------------------- ### Displaying Basic Datatable Data Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/plugins/datatables.html This snippet shows how to render a basic datatable with sample data. It includes table headers and rows populated with information such as Name, Position, Office, Age, Start date, and Salary. This is a fundamental example for integrating datatables into your Laravel application. ```html
Name Position Office Age Start date Salary
Tiger Nixon System Architect Edinburgh 61 2011/04/25 $320,800
Garrett Winters Accountant Tokyo 63 2011/07/25 $170,750
Ashton Cox Junior Technical Author San Francisco 66 2009/01/12 $86,000
Cedric Kelly Senior Javascript Developer Edinburgh 22 2012/03/29 $433,060
Airi Satou Accountant Tokyo 33 2008/11/28 $162,700
Brielle Williamson Integration Specialist New York 61 2012/12/02 $372,000
Herrod Chandler Sales Assistant San Francisco 59 2012/08/06 $137,500
Rhona Davidson Integration Specialist Tokyo 55 2010/10/14 $327,900
Colleen Hurst Javascript Developer San Francisco 39 2009/09/15 $205,500
Sonya Frost Software Engineer Edinburgh 23 2008/12/13 $103,600
Jena Gaines Office Manager London 30 2008/12/19 $90,560
Quinn Flynn Support Lead Edinburgh 22 2013/03/03 $342,000
Charde Marshall Regional Director San Francisco 36 2008/10/16 $470,600
Haley Kennedy Senior Marketing Designer London 43 2012/12/18 $313,500
Tatyana Fitzpatrick Regional Director London 19 2010/03/17 $385,750
Michael Silva Marketing Designer London 66 2012/11/27 $198,500
Paul Byrd Chief Financial Officer (CFO) New York 64 2010/06/09 $725,000
Gloria Little Systems Administrator New York 59 2009/04/10 $237,500
Bradley Greer Software Engineer London 41 2012/10/13 $132,000
Dai Rios Personnel Lead Edinburgh 35 2012/09/26 $217,500
Jenette Caldwell Development Lead New York 30 2011/09/03 $345,000
Yuri Berry Chief Marketing Officer (CMO) New York 40 2009/06/25 $675,000
Caesar Vance Pre-Sales Support New York 21 2011/12/12 $106,450
Doris Wilder Sales Assistant Sidney 23 2010/09/20 $85,600
Angelica Ramos Chief Executive Officer (CEO) London 47 2009/10/09 $1,200,000
Gavin Joyce Developer Edinburgh 42 2010/12/22 $92,575
Jennifer Chang Regional Director Singapore 28 2010/11/14 $357,650
Brenden Wagner Software Engineer San Francisco 28 2011/06/07 $206,850
Fiona Green Chief Operating Officer (COO) San Francisco 48 2010/03/11 $850,000
Shou Itou Regional Marketing Tokyo 20 2011/08/14 $163,000
Michelle House Integration Specialist Sidney 37 2011/06/02 $95,400
Suki Burks Developer London 53 2009/10/22 $114,500
Prescott Bartlett Technical Author London 27 2011/05/07 $145,000
Gavin Cortez Team Leader San Francisco 22 2008/10/26 $235,500
Martena Mccray Post-Sales support Edinburgh 46 2011/03/09 $324,050
Unity Butler Marketing Designer San Francisco 47 2009/12/09 $85,675
Howard Hatfield Office Manager San Francisco 51 2008/12/16 $164,500
Hope Fuentes Secretary San Francisco 41 2010/02/12 $109,850
Vivian Harrell Financial Controller San Francisco 62 2009/02/14 $452,500
Timothy Mooney Office Manager London 37 2008/12/11 $136,200
Jackson Bradshaw Director New York 65 2008/09/26 $645,750
Olivia Liang Support Engineer Singapore 64 2011/02/03 $234,500
Bruno Nash Software Engineer London 38 2011/05/03 $163,500
Sakura Yamamoto Support Engineer Tokyo 37 2009/08/19 $139,575
Thor Walton Developer New York 61 2013/08/11 $98,540
Finn Camacho Support Engineer San Francisco 47 2009/07/07 $87,500
Serge Baldwin Data Coordinator Singapore 64 2012/04/09 $138,575
Zenaida Frank Software Engineer New York 63 2010/01/04 $125,250
Zorita Serrano Software Engineer San Francisco 56 2012/06/01 $115,000
Jennifer Acosta Junior Javascript Developer Edinburgh 43 2013/02/01 $75,650
Cara Stevens Sales Assistant New York 46 2011/12/06 $145,600
Hermione Butler Regional Director London 47 2011/03/21 $356,250
Lael Greer Systems Administrator London 21 2009/02/27 $103,500
Jonas Alexander Developer San Francisco 30 2010/07/14 $86,500
Shad Decker Regional Director Edinburgh 51 2008/11/13 $183,000
Michael Bruce Javascript Developer Singapore 29 2011/06/27 $183,000
Donna Snider Customer Support New York 27 2011/01/25 $112,000
``` -------------------------------- ### Font Awesome 5 Initialization Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/foundation/icons.html Shows how to include Font Awesome 5 in your project by linking the CSS file in the head section. It also provides an example of how to render an icon using its class. ```HTML ``` ```HTML ``` -------------------------------- ### Bootstrap Tooltip Examples Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/tooltips.html Demonstrates various Bootstrap tooltips with different color themes (Primary, Info, Success, Warning, Danger, Default, Secondary). Each button is configured with data-bs-toggle='tooltip' and data-bs-placement attributes to control the tooltip's behavior and appearance. ```HTML ``` -------------------------------- ### HTML Pricing Cards for Material Dashboard Laravel Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/cards.html This snippet displays two pricing cards, 'Starter' and 'Premium', for the Material Dashboard Laravel project. It uses Bootstrap for layout and styling, and Material Icons to indicate features. The 'Starter' card is priced at $59/mo and includes basic features, while the 'Premium' card at $89/mo offers enhanced features and a dark gradient background. ```HTML
Starter

$59/mo

done 2 team members
done 20GB Cloud storage
done Integration help
remove Sketch Files
remove API Access
remove Complete documentation
Join
Premium

$89/mo

done 10 team members
done 40GB Cloud storage
done Integration help
done Sketch Files
remove API Access
remove Complete documentation
Try Premium
``` -------------------------------- ### Bootstrap Collapse Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/collapse.html Demonstrates how to use the Bootstrap Collapse component to toggle the visibility of content. It includes examples for both link-based triggers and button-based triggers, utilizing data attributes for functionality. ```html

Anim pariatur cliche reprehenderit, enim eiusmod high life accusamus terry richardson ad squid. Nihil anim keffiyeh helvetica, craft beer labore wes anderson cred nesciunt sapiente ea proident.
``` -------------------------------- ### Bootstrap Badge Example - HTML Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/badge.html Demonstrates how to use Bootstrap badges to display counts or labels alongside text, such as unread messages or notifications. Includes examples with primary and danger badges. ```HTML ``` -------------------------------- ### Bootstrap Modal Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/modal.html This snippet demonstrates how to trigger and display a basic Bootstrap modal using HTML and JavaScript. It includes a button to launch the modal and the modal's structure with header, body, and footer. ```HTML ``` -------------------------------- ### Bootstrap Vertical Tabs Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/navs.html Shows how to implement vertical navigation pills using Bootstrap's nav components. This example features three navigation items: 'My Profile', 'Dashboard', and 'Payments', arranged vertically. ```HTML ``` -------------------------------- ### Bootstrap Tabs with Icons Example Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/components/navs.html Illustrates the creation of navigation tabs that include icons alongside text. This example uses Bootstrap's nav components and Material Icons to display 'My Profile' and 'Dashboard' with associated icons. ```HTML ``` -------------------------------- ### Bootstrap 5 Integration Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/overview.html This snippet demonstrates the foundational use of Bootstrap 5, a popular front-end framework, for building responsive and modern web interfaces. It's a core dependency for the Material Dashboard. ```HTML Material Dashboard ``` -------------------------------- ### Responsive Grid Columns in Laravel Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/foundation/grid.html Demonstrates the use of Bootstrap's predefined responsive grid classes to build layouts that adapt to different screen sizes. Includes examples of equal-width columns and specific column sizing across breakpoints. ```html
col
col
col
col
col-8
col-4
``` -------------------------------- ### Enable Dark Mode Source: https://github.com/creativetimofficial/material-dashboard-laravel/blob/master/src/material-stubs/resources/material/documentation/getting-started/installation.html Applies the 'dark-version' class to the body tag to activate the dark mode variant of the Material Dashboard. ```html ... ```