# laravel6 shop **Repository Path**: petergithub/laravelshop ## Basic Information - **Project Name**: laravel6 shop - **Description**: laravel 6 shop - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-03-09 - **Last Updated**: 2021-06-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # CoreUI Free Laravel Bootstrap Admin Template [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social&logo=twitter)](https://twitter.com/intent/tweet?text=CoreUI%20-%20Free%20Bootstrap%204%20Admin%20Template%20&url=https://coreui.io&hashtags=bootstrap,admin,template,dashboard,panel,free,angular,react,vue) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Please help us on [Product Hunt](https://www.producthunt.com/posts/coreui-open-source-bootstrap-4-admin-template-with-angular-2-react-js-vue-js-support) and [Designer News](https://www.designernews.co/stories/81127). Thanks in advance! [![Bootstrap Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/) Curious why I decided to create CoreUI? Please read this article: [Jack of all trades, master of none. Why Bootstrap Admin Templates suck.](https://medium.com/@lukaszholeczek/jack-of-all-trades-master-of-none-5ea53ef8a1f#.7eqx1bcd8) CoreUI is based on Bootstrap 4 and offers 6 versions: [HTML5 AJAX](https://github.com/coreui/coreui-free-bootstrap-admin-template-ajax), [HTML5](https://github.com/coreui/coreui-free-angular-admin-template), [Angular 2+](https://github.com/coreui/coreui-free-angular-admin-template), [React.js](https://github.com/coreui/coreui-free-react-admin-template) & [Vue.js](https://github.com/coreui/coreui-free-vue-admin-template), [.NET Core 2](https://github.com/mrholek/CoreUI-NET). CoreUI is meant to be the UX game changer. Pure & transparent code is devoid of redundant components, so the app is light enough to offer ultimate user experience. This means mobile devices also, where the navigation is just as easy and intuitive as on a desktop or laptop. The CoreUI Layout API lets you customize your project for almost any device – be it Mobile, Web or WebApp – CoreUI covers them all! ## Table of Contents * [Versions](#versions) * [CoreUI Pro](#coreui-pro) * [Admin Templates built on top of CoreUI Pro](#admin-templates-built-on-top-of-coreui-pro) * [Installation](#installation) * [Usage](#Usage) * [Creators](#creators) * [Community](#community) * [Community Projects](#community-projects) * [License](#license) * [Support CoreUI Development](#support-coreui-development) ## Versions CoreUI is built on top of Bootstrap 4 and supports popular frameworks. * [CoreUI Free Laravel Bootstrap Admin Template](https://github.com/coreui/coreui-free-laravel-admin-template) * [CoreUI Free Bootstrap Admin Template](https://github.com/coreui/coreui-free-bootstrap-admin-template) * [CoreUI Free Bootstrap Admin Template (Ajax)](https://github.com/coreui/coreui-free-bootstrap-admin-template-ajax) * [CoreUI Free Angular 2+ Admin Template](https://github.com/coreui/coreui-free-angular-admin-template) * 🚧 CoreUI Free .NET Core 3 Admin Template (Available Soon) * [CoreUI Free React.js Admin Template](https://github.com/coreui/coreui-free-react-admin-template) * [CoreUI Free Vue.js Admin Template](https://github.com/coreui/coreui-free-vue-admin-template) ## CoreUI Pro * 💪 [CoreUI Pro Bootstrap Admin Template](https://coreui.io/pro/) * 💪 [CoreUI Pro Bootstrap Admin Template (Ajax)](https://coreui.io/pro/) * 💪 [CoreUI Pro Angular Admin Template](https://coreui.io/pro/angular) * 💪 [CoreUI Pro React Admin Template](https://coreui.io/pro/react) * 💪 [CoreUI Pro Vue Admin Template](https://coreui.io/pro/vue) ## Admin Templates built on top of CoreUI Pro | CoreUI Pro | Prime | Root | Alba | Leaf | | --- | --- | --- | --- | --- | | [![CoreUI Pro Admin Template](https://coreui.io/assets/img/example-coureui.jpg)](https://coreui.io/pro/) | [![Prime Admin Template](https://coreui.io/assets/img/responsive-prime.png)](https://coreui.io/admin-templates/bootstrap/prime/?support=1) | [![Root Admin Template](https://coreui.io/assets/img/responsive-root.png)](https://coreui.io/admin-templates/bootstrap/root/?support=1) | [![Alba Admin Template](https://coreui.io/assets/img/responsive-alba.png)](https://coreui.io/admin-templates/bootstrap/alba/?support=1) | [![Leaf Admin Template](https://coreui.io/assets/img/responsive-leaf.png)](https://coreui.io/admin-templates/bootstrap/leaf/?support=1) ## Installation ``` bash # clone the repo $ git clone https://github.com/coreui/coreui-free-laravel-admin-template.git my-project # go into app's directory $ cd my-project # install app's dependencies $ composer install # install app's dependencies $ npm install ``` ### If you choice to use SQLite ``` bash # create database $ touch database/database.sqlite ``` Copy file ".env.example", and change its name to ".env". Then in file ".env" replace this database configuration: * DB_CONNECTION=mysql * DB_HOST=127.0.0.1 * DB_PORT=3306 * DB_DATABASE=laravel * DB_USERNAME=root * DB_PASSWORD= To this: * DB_CONNECTION=sqlite * DB_DATABASE=/path_to_your_project/database/database.sqlite ### If you choice to use PostgreSQL 1. Install PostgreSQL 2. Create user ``` bash $ sudo -u postgres createuser --interactive enter name of role to add: laravel shall the new role be a superuser (y/n) n shall the new role be allowed to create database (y/n) n shall the new role be allowed to create more new roles (y/n) n ``` 3. Set user password ``` bash $ sudo -u postgres psql postgres= ALTER USER laravel WITH ENCRYPTED PASSWORD 'password'; postgres= \q ``` 4. Create database ``` bash $ sudo -u postgres createdb laravel ``` 5. Copy file ".env.example", and change its name to ".env". Then in file ".env" replace this database configuration: * DB_CONNECTION=mysql * DB_HOST=127.0.0.1 * DB_PORT=3306 * DB_DATABASE=laravel * DB_USERNAME=root * DB_PASSWORD= To this: * DB_CONNECTION=pgsql * DB_HOST=127.0.0.1 * DB_PORT=5432 * DB_DATABASE=laravel * DB_USERNAME=laravel * DB_PASSWORD=password ### If you choice to use MySQL Copy file ".env.example", and change its name to ".env". Then in file ".env" complete this database configuration: * DB_CONNECTION=mysql * DB_HOST=127.0.0.1 * DB_PORT=3306 * DB_DATABASE=laravel * DB_USERNAME=root * DB_PASSWORD= ### Next step ``` bash # in your app directory # generate laravel APP_KEY $ php artisan key:generate # run database migration and seed $ php artisan migrate:refresh --seed # generate mixing $ npm run dev # and repeat generate mixing $ npm run dev ``` ## Usage ``` bash # start local server $ php artisan serve # test $ php vendor/bin/phpunit ``` Open your browser with address: [localhost:8000](localhost:8000) Click "Notes" on topbar menu and log in with credentials: * E-mail: _admin@admin.com_ * Password: _password_ This user has roles: _user_ and _admin_ * Role _user_ is required for **notes** management. * Role _admin_ is required for **users** management. --- ### How to add a link to the sidebar: > Instructions for CoreUI Free Laravel admin template only. _Pro and Vue.js versions have separate instructions._ #### To add a __link__ to the sidebar - modify seeds file: `my-project/database/seeds/MenusTableSeeder.php` In `run()` function - add `insertLink()`: ```php $id = $this->insertLink( $rolesString, $visibleName, $href, $iconString); ``` * `$rolesString` - a string with list of user roles this menu element will be available, ex. `"guest,user,admin"` * `$visibleName` - a string caption visible in sidebar * `$href` - a href, ex. `/homepage` or `http://example.com` * `$iconString` - a string containing valid CoreUI Icon name (kebab-case), ex. `cui-speedometer` or `cui-star` To add a __title__ to the sidebar - use function `insertTitle()`: ```php $id = $this->insertTitle( $rolesString, $title ); ``` * `$rolesString` - a string with list of user roles this menu element will be available, ex. `"guest,user,admin"` * `$title` - a string caption visible in sidebar To add a __dropdown__ menu to the sidebar - use function `beginDropdown()`: ```php $id = $this->beginDropdown( $rolesString, $visibleName, $iconString); ``` * `$rolesString` - a string with list of user roles this menu element will be available, ex. `"guest,user,admin"` * `$visibleName` - a string caption visible in sidebar * `$iconString` - a string containing valid CoreUI icon name (kebab-case). For example: `cui-speedometer` or `cui-star` To end dropdown section - use function `endDropdown()`. To add __link__ to __dropdown__ call function `insertLink()` between function calls `beginDropdown()` and `endDropdown()`. Example: ```php $id = $this->beginDropdown('guest,user,admin', 'Some dropdown', 'cui-puzzle'); $id = $this->insertLink('guest,user,admin', 'Dropdown name', 'http://example.com'); $this->endDropdown(); ``` __IMPORTANT__ - At the end of `run()` function, call `joinAllByTransaction()` function: ```php $this->joinAllByTransaction(); ``` Once done with seeds file edit, __run__: ``` bash $ php artisan migrate:refresh --seed # This command also rollbacks database and migrates it again. ``` ## Creators **Łukasz Holeczek** * * **Andrzej Kopański** * **Marcin Michałek** * ## Community Get updates on CoreUI's development and chat with the project maintainers and community members. - Follow [@core_ui on Twitter](https://twitter.com/core_ui). - Read and subscribe to [CoreUI Blog](https://coreui.io/blog/). ## CoreUI Icons (500+ Free icons) - Premium designed free icon set with marks in SVG, Webfont and raster formats. CoreUI Icons are beautifully crafted symbols for common actions and items. You can use them in your digital products for web or mobile app. Ready-to-use fonts and stylesheets that work with your favorite frameworks. ![CoreUI Free Icons](https://coreui.io/images/icons_free_bg_set.png) ### CoreUI Icons Preview & Docs [https://coreui.io/icons/](https://coreui.io/icons/) ## Copyright and license copyright 2019 creativeLabs Łukasz Holeczek. Code released under [the MIT license](https://github.com/coreui/coreui-free-laravel-admin-template/blob/master/LICENSE). There is only one limitation you can't can’t re-distribute the CoreUI as stock. You can’t do this if you modify the CoreUI. In past we faced some problems with persons who tried to sell CoreUI based templates. ## Support CoreUI Development CoreUI is an MIT licensed open source project and completely free to use. However, the amount of effort needed to maintain and develop new features for the project is not sustainable without proper financial backing. You can support development by donating on [PayPal](https://www.paypal.me/holeczek), buying [CoreUI Pro Version](https://coreui.io/pro) or buying one of our [premium admin templates](https://genesisui.com/?support=1). As of now I am exploring the possibility of working on CoreUI fulltime - if you are a business that is building core products using CoreUI, I am also open to conversations regarding custom sponsorship / consulting arrangements. Get in touch on [Twitter](https://twitter.com/lukaszholeczek).