Create Scaffold with Laravel 5.7 — Add Core UI Template (Part 2)

Alfredo Barron
modulr
Published in
8 min readOct 20, 2018

--

In this part we will add Core UI Bootstrap Admin Template to custom the UI and UX of project.

Table of Contents

Add Dependencies

Open your terminal and typing the next commands to add dependencies

# Enter to folder project
cd laravel-scaffold
# Install CoreUI package
npm install @coreui/coreui --save
# Install Font Awesome
npm install @fortawesome/fontawesome-free --save
# Install Simple Line Icons
npm install simple-line-icons --save

Import JS and CSS

Open the resources/js/bootstrap.js file and write the next code line

try {
window.$ = window.jQuery = require('jquery');

require('bootstrap');
require('@coreui/coreui');
} catch (e) {}

Open the resources/sass/app.scss file and write the next code lines

// Bootstrap
@import '~bootstrap/scss/bootstrap';

// Icons
@import '~simple-line-icons/css/simple-line-icons.css';
@import

--

--