TechnoBureau UI views and complete authentication system.
Requires
- php: ^7.3|^8.0
- artesaos/seotools: ^0.20.1
- genealabs/laravel-model-caching: ^0.11.3
- illuminate/console: ^8.42
- illuminate/filesystem: ^8.42
- illuminate/support: ^8.42
- illuminate/validation: ^8.42
- laravel/sanctum: ^2.11
- laravel/ui: ^3.0
- mateusjunges/laravel-acl: ^2.6
This package is auto-updated.
Last update: 2024-11-08 00:33:17 UTC
README
This legacy package is a very simple authentication scaffolding built on the Bootstrap CSS framework. While it continues to work with the latest version of Laravel.
Introduction
While Laravel does not dictate which JavaScript or CSS pre-processors you use, it does provide a basic starting point using Bootstrap, and / or Vue that will be helpful for many applications. By default, Laravel uses NPM to install both of these frontend packages.
Official Documentation
Supported Versions
Only the latest major version of TechnoBureau UI receives bug fixes. The table below lists compatible Laravel versions:
Installation
The Bootstrap and Vue scaffolding provided by TechnoBureau is located in the technobureau/ui
Composer package, which may be installed using Composer:
composer require technobureau/ui
Before executing this ui command execute default laravel/ui command to generate basic authentication scaffolding.
php artisan ui bootstrap --auth
Once the technobureau/ui
package has been installed, you may install the frontend scaffolding using the ui
Artisan command:
// Generate basic scaffolding... php artisan ui technobureau // Generate login / registration scaffolding... php artisan ui technobureau --auth
This package are depended on few vendor package, so execute below command to publish configuration file related to that package. Please make sure entered as 0 as input when publish command ask for provider or tag
php artisan vendor:publish
CSS
Laravel Mix provides a clean, expressive API over compiling SASS or Less, which are extensions of plain CSS that add variables, mixins, and other powerful features that make working with CSS much more enjoyable. In this document, we will briefly discuss CSS compilation in general; however, you should consult the full Laravel Mix documentation for more information on compiling SASS or Less.
JavaScript
Laravel does not require you to use a specific JavaScript framework or library to build your applications. In fact, you don't have to use JavaScript at all. However, Laravel does include some basic scaffolding to make it easier to get started writing modern JavaScript using the Vue library. Vue provides an expressive API for building robust JavaScript applications using components. As with CSS, we may use Laravel Mix to easily compile JavaScript components into a single, browser-ready JavaScript file.
Writing CSS
After installing the technobureau/ui
Composer package and generating the frontend scaffolding, Laravel's package.json
file will include the bootstrap
package to help you get started prototyping your application's frontend using Bootstrap. However, feel free to add or remove packages from the package.json
file as needed for your own application. You are not required to use the Bootstrap framework to build your Laravel application - it is provided as a good starting point for those who choose to use it.
Before compiling your CSS, install your project's frontend dependencies using the Node package manager (NPM):
npm install
Once the dependencies have been installed using npm install
, you can compile your SASS files to plain CSS using Laravel Mix. The npm run prod
command will process the instructions in your webpack.mix.js
file. Typically, your compiled CSS will be placed in the public/css
directory:
npm run prod
The webpack.mix.js
file included with Laravel's frontend scaffolding will compile the resources/sass/technobureau.scss
SASS file. This technobureau.scss
file imports a file of SASS variables and loads Bootstrap, which provides a good starting point for most applications. Feel free to customize the technobureau.scss
file however you wish or even use an entirely different pre-processor by configuring Laravel Mix.
Writing JavaScript
All of the JavaScript dependencies required by your application can be found in the package.json
file in the project's root directory. This file is similar to a composer.json
file except it specifies JavaScript dependencies instead of PHP dependencies. You can install these dependencies using the Node package manager (NPM):
npm install
By default, the Laravel
package.json
file includes a few packages such aslodash
andaxios
to help you get started building your JavaScript application. Feel free to add or remove from thepackage.json
file as needed for your own application.
Once the packages are installed, you can use the npm run prod
command to compile your assets. Webpack is a module bundler for modern JavaScript applications. When you run the npm run prod
command, Webpack will execute the instructions in your webpack.mix.js
file:
npm run prod
By default, the Laravel webpack.mix.js
file compiles your SASS and the resources/js/technobureau.js
file. Within the technobureau.js
file you may register your Vue components or, if you prefer a different framework, configure your own JavaScript application. Your compiled JavaScript will typically be placed in the public/js
directory.
The
technobureau.js
file will load theresources/js/bootstrap.js
file which bootstraps and configures Vue, Axios, jQuery, and all other JavaScript dependencies andresources/js/bootstrap-select.js
for beautiful select drop down with search option. If you have additional JavaScript dependencies to configure, you may do so in this file.
License
Laravel UI is open-sourced software licensed under the MIT license.