![]() ![]() ![]() Refer to the following sub-sections for details. Important HTML globalsīootstrap v4 CSS employs a handful of important global styles and settings that you'll need to be aware of when using it, all of which are almost exclusively geared towards the normalization of cross browser styles. Many of the examples in this documentation are live and can be edited in-place for an enhanced learning experience (note some examples may not work in IE 11 due to use of ES6 JavaScript code in the sections).īootstrapVue also provides an interactive playground where you can experiment with the various components and export your results to JSFiddle, CodePen, and/or CodeSandbox. You can find information on these classes in the Utility Classes reference section. These are Bootstrap v4.6 utility classes that help control padding, margins, positioning, and more. In many of the examples shown in BootstrapVue's documentation, you may see the use of CSS classes such as ml-2, py-1, etc. Vue loader scoped CSS, if using scoped styles in SFC (Single File Component).This BootstrapVue documentation assumes you are familiar with Vue and Bootstrap v4 CSS. Reference - Reference information and documentation.Icons - Icons and icon plugin documentation v2.2.0 .Directives - Directives and directive plugin documentation.Components - Components and component plugin documentation.If you are migrating from a previous v2.0.0-rc.# release, please see the v2.0.0 migration guide. PortalVue v2.1 is required by Toasts, v2.1.7 is recommendedĬheck out what is new in BootstrapVue release v2.23.0.Popper.js v1.16 is required for dropdowns (and components based on dropdown), tooltips, and popovers.Bootstrap v4.3.1 is required, v4.6.1 is recommended.Vue.js v2.6 is required, v2.6.12 is recommended.Run the migrations: After the config and migration have been published and configured, you can create the tables for this package by running: php artisan migrateĪdd the necessary trait to your User model: // The User model requires this trait use HasRoles Ĭonsult the Basic Usage section of the docs to get started using the features of this package.Get started with BootstrapVue, based on the world's most popular framework - Bootstrap v4, for building responsive, mobile-first sites using Vue.js. If you've been caching configurations locally, clear your config cache with either of these commands: php artisan optimize : clear # or php artisan config : clear Generally it's bad practice to do config-caching in a development environment. This package requires access to the permission config. NOTE: If you are using MySQL 8, look at the migration files for notes about MySQL 8 to set/limit the index key length, and edit accordingly.Ĭlear your config cache. If you are going to use the TEAMS features, you must update your config/permission.php config file and set 'teams' => true, and in your database if you want to use a custom foreign key for teams you must change team_foreign_key. It also mentions important considerations after extending this package's models for UUID capability. It explains some changes you may want to make to the migrations and config file before continuing. NOTE: If you are using UUIDs, see the Advanced section of the docs on UUID steps, before you continue. You should publish the migration and the config/permission.php config file with: php artisan vendor : publish - provider = "Spatie\Permission\PermissionServiceProvider" Or you may manually add the service provider in your config/app.php file: 'providers' => Optional: The service provider will automatically get registered. You can install the package via composer: composer require spatie / laravel - permission If you already have a file by that name, you must rename or remove it. ![]() This package publishes a config/permission.php file. Package VersionĬonsult the Prerequisites page for important considerations regarding your User models! This package can be used with Laravel 6.0 or higher. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |