当前位置: 首页 > 软件库 > Web应用开发 > Web框架 >

laravel-boilerplate

授权协议 MIT License
开发语言 PHP
所属分类 Web应用开发、 Web框架
软件类型 开源软件
地区 不详
投 递 者 松德曜
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Laravel Boilerplate Project

Laravel Boilerplate provides a very flexible and extensible way of building your custom Laravel applications.

Table of Contents

Features

  • Administration Dashboard with Gentelella Admin Theme
  • Responsive Layout
  • Bootstrap 3
  • Font Awesome
  • Socialite Integration
  • Invisible reCAPTCHA
  • Membership plans and Access control management by NetLicensing ��
  • MySQL, SQLite, PostgreSQL databases support
  • AWS S3 support
  • Google Analytics support in frontend
    • Configuration can be easily made via analytics.php and template ga.blade.php
  • Automatic errors feedback via eMail
  • i18n support and automatic user client language recognition
  • Helper class ToJs to ease work with JavaScript variables using blade directive @tojs
  • Helper class Meta blade directive @meta to ease work with meta tags & properties
  • Models for Users and Roles
  • Added Auth controller to allow registration activation by email
  • Guided Tour by GuideChimp ��
  • Extended Auth configuration by:
    • Ability to switch on/off user registration
    • Set up default user role
    • Ability to switch on/off registration activation email
    • Captcha configuration
  • Gravatar support in User model and flexible configuration via gravatar.php
  • Added library log viewer to allow printing errors in a log file laravel.log
  • Added library sortable for tables sorting
  • i18n: trans() method replaced by __() in order to support internationalization via JSON resources
  • Registration using social services (Google+, Facebook, Twitter)
  • Storing last social login in user session
  • Added event on SocialLogin
  • Added listeners on some events; e.g. Login, Logout, Registration, SocialLogin
  • Added notification ConfirmEmail on user account confirmation
  • Added policies to access backend services
  • Added database seeders for Users, Roles, and UserRoles
  • Improved migration create_users_table.php; fields added active, confirm and deleted_at for soft deletion
  • JavaScript / CSS minification
  • JavaScript / CSS hashing
  • Some very useful helper functions to ease your live :)

Theme Demo

Gentelella Admin Theme Demo

System Requirements

To be able to run Laravel Boilerplate you have to meet the following requirements:

  • PHP >= 7.4
  • PHP Extensions: BCMath, Ctype, Fileinfo, JSON, Mbstring, OpenSSL, PDO, Tokenizer, XML, cURL, Mcrypt, GD
  • Node.js >= 8.x
  • Composer >= 1.9.x

Installation

  1. Install Composer using detailed installation instructions here
$ wget https://getcomposer.org/composer.phar
$ chmod +x composer.phar
$ mv composer.phar /usr/local/bin/composer
  1. Install Node.js using detailed installation instructions here
$ yum install npm
  1. Clone repository
$ git clone https://github.com/Labs64/laravel-boilerplate.git
  1. Change into the working directory
$ cd laravel-boilerplate
  1. Copy .env.example to .env and modify according to your environment
$ cp .env.example .env
  1. Install composer dependencies
$ composer install --prefer-dist
  1. An application key can be generated with the command
$ php artisan key:generate
  1. Execute following commands to install other dependencies
$ npm install
$ npm run dev
  1. Run these commands to create the tables within the defined database and populate seed data
$ php artisan migrate --seed

Troubleshooting

  • If you get an error like a PDOException try editing your .env file and change DB_HOST=127.0.0.1 to DB_HOST=localhost or DB_HOST=mysql (for docker-compose environment).

  • If you get a password error try this command:

# ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';

Run

To start the PHP built-in server

$ php artisan serve --port=8080
or
$ php -S localhost:8080 -t public/

Now you can browse the site at http://localhost:8080 ��

Docker

Here is a Docker based local development environment prepared, which provides a very flexible and extensible way of building your custom Laravel applications.

What's Inside

This project is based on docker-compose. By default, the following containers are started: laravel-env (centos:7 based), mysql, nginx. Additional containers (phpmyadmin, mailhog) are externalized into docker-compose.utils.yml. The /var/www/laravel-boilerplate directory is the web root which is mapped to the nginx container.You can directly edit configuration files from within the repo as they are mapped to the correct locations in containers.

Laravel Boilerplate Docker

System Requirements

To be able to run Laravel Boilerplate you have to meet the following requirements:

Run

  1. Clone repository
$ git clone https://github.com/Labs64/laravel-boilerplate.git
  1. Copy .env.example to .env and modify according to your environment (make sure database host set to DB_HOST=mysql)
$ cp .env.example .env
  1. Start environment
$ docker-compose up -d  # to start base containers
or
$ docker-compose -f docker-compose.yml -f docker-compose.utils.yml up -d  # to start base and utils containers
  1. Build project
$ docker exec laravel-boilerplate_laravel-env_1 ./dockerfiles/bin/prj-build.sh
 or
$ docker-compose run --rm laravel-boilerplate_laravel-env_1 ./dockerfiles/bin/prj-build.sh

Now you can browse the site at http://localhost:80 ��


  1. Stop environment
$ docker-compose down
 or
$ docker-compose -f docker-compose.yml -f docker-compose.utils.yml down

How To's & Modules configuration

Check out project wiki pages for modules configuration and troubleshooting.For more detailed instructions on how to use Laravel and it's extensions, check out the full Laravel documentation.

How to contribute

Fork the repository, read the CONTRIBUTE file and make some changes.Once you're done with your changes send a pull request and check CI validation status.Thanks!

Contributors and Supporters

Thank you to all the contributors on this project. Your help is much appreciated!

Bugs and Feedback

For bugs, questions and discussions please use the GitHub Issues.

License

This boilerplate is open-source software licensed under the MIT license.

  • 安装laravel-boilerplate遇到的一些问题 安装 GitHub开源代码 Labs64/laravel-boilerplate,遇到了一些问题。 git地址: https://github.com/Labs64/laravel-boilerplate composer.json里面要求php版本>=7.4 由于项目开发环境要求是php7.1.9,首先修改环境变量,把7.1.9换成7.4

 相关资料
  • Laravel 是一套简洁、优雅的PHP Web开发框架(PHP Web Framework)。它可以让你从面条一样杂乱的代码中解脱出来;它可以帮你构建一个完美的网络APP,而且每行代码都可以简洁、富于表达力。 功能特点 1、语法更富有表现力 你知道下面这行代码里 “true” 代表什么意思么? $uri = Uri::create(‘some/uri’, array(), array(), tr

  • 我需要空间/Laravel权限的帮助。当我试图分配它给我错误哎呀,看起来像出了问题。 错误 Connection.php第761行中的QueryExcema:SQLSTATE[23000]:完整性约束冲突:1048列role_id不能为空(SQL:插入到(,)值(9,))

  • Laravel API Boilerplate (JWT Edition) for Laravel 5.8 Laravel API Boilerplate is a "starter kit" you can use to build your first API in seconds. As you can easily imagine, it is built on top of the aw

  • Laravel 作为现在最流行的 PHP 框架,其中的知识较多,所以单独拿出来写一篇。 简述 Laravel 的生命周期 Laravel 采用了单一入口模式,应用的所有请求入口都是 public/index.php 文件。 注册类文件自动加载器 : Laravel通过 composer 进行依赖管理,无需开发者手动导入各种类文件,而由自动加载器自行导入。 创建服务容器:从 bootstrap/ap

  • 简介 Laravel Scout 为 Eloquent 模型 全文搜索提供了简单的,基于驱动的解决方案。通过使用模型观察者,Scout 会自动同步 Eloquent 记录的搜索索引。 目前,Scout 自带一个 Algolia 驱动;不过,编写自定义驱动很简单, 你可以轻松的通过自己的搜索实现来扩展 Scout。 安装 首先,通过 Composer 包管理器来安装 Scout: composer

  • 简介 Laravel 致力于让整个 PHP 开发体验变得愉快, 包括你的本地开发环境。 Vagrant 提供了一种简单,优雅的方式来管理和配置虚拟机。 Laravel Homestead 是一个官方预封装的 Vagrant box,它为你提供了一个完美的开发环境,而无需在本地机器安装 PHP 、Web 服务器和其他服务器软件。不用担心会搞乱你的操作系统!Vagrant boxes 是一次性的。如果