Learning Laravelright before the usual .php which is nothing other than the actual file extension. As such, .blade.php is the resulting file extension for Blade template files. Blade template engine files are stored in the connections' name mysql below: 'connections' => [ 'sqlite' => [ 'driver' => 'sqlite', 'database' => database_path('database.sqlite'), 'prefix' => '', ], 'mysql' the connection() method to tell Laravel which database connection you use: Schema::connection("sqlite")->create("table",function(Blueprint $table){ $table->increments('id'); }); Artisan Migrate0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 3.2 Documentation......................................................................... 76 Quick Start Using SQLite ............................................................................................. 76 following goodies will help you take full advantage of Laravel, but they are not required: SQLite, MySQL, PostgreSQL, or SQL Server PDO drivers. Memcached or APC. 12 Problems? If to maintain. All views are stored within the application/views directory and use the PHP file extension. The View class provides a simple way to retrieve your views and return them to the client. Let's0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.6 中文文档目录包含了应用所有的配置文件,建议通读一遍这些配置文件以便熟悉 Laravel 所有默认配置项; Database 目录 database 目录包含了数据库迁移文件及填充文件,如果有使用 SQLite 的话,你还可以将其作为 SQLite 数据库存放目录; Public 目录 public 目录包含了应用入口文件 index.php 和前端资源文件(图片、JavaScript、CSS 等),该目录也是 Apache PHP 7.1 PHP 7.0 PHP 5.6 Nginx Apache(可选) MySQL MariaDB(可选) SQLite3 PostgresSQL Composer Node(With Yarn, Bower, Grunt, and Gulp) Redis Memcached UploadedFile 类还提供了访问上传文件绝对路径和扩展名的方法。 extension 方法可以基于文件内容判断文件扩展名,该扩展名可能会和客户端提 供的扩展名不一致: $path = $request->photo->path(); $extension = $request->photo->extension(); 其他文件方法 UploadedFile 实例上还有很多其他可用方法,查看该类的0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档目录包含了应用所有的配置文件,建议通读一遍这些配置文 件以便熟悉 Laravel 所有默认配置项。 数据库目录 database 目录包含了数据库迁移文件及填充文件,如果有使用 SQLite 的话,你还可以将其作为 SQLite 数据库存放目录。 对外公开目录 public 目录包含了应用入口文件 index.php 和前端资源文件(图 片、JavaScript、CSS 等),该目录也是 Apache PHP 7.2 PHP 7.1 PHP 7.0 PHP 5.6 Nginx MySQL lmm(用于 MySQL 或 MariaDB 数据库快照) SQLite3 PostgreSQL Composer Node(With Yarn, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd UploadedFile 类还提供了访问上传文件绝对路径和扩展名的方 法。 extension 方法可以基于文件内容判断文件扩展名,该扩展名 可能会和客户端提供的扩展名不一致: $path = $request->photo->path(); $extension = $request->photo->extension(); 其他文件方法 UploadedFile 实例上还有很多其他可用方法,查看该类的0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档config 目录包含了应用所有的配置文件,建议通读一遍这些配置文件以便熟悉所有配置项; Database 目录 database 目录包含了数据迁移及填充文件,如果你喜欢的话还可以将其作为 SQLite 数据库存放 目录; Public 目录 public 目录包含了入口文件 index.php 和前端资源文件(图片、JavaScript、CSS 等); Resources 目录 Ubuntu 16.04 Git PHP 7.0 HHVM Xdebug Nginx MySQL MariaDB SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) Redis Memcached UploadedFile 类还提供了访问上传文件绝对路径和扩展名的方法。 extension 方法可以基于文件 内容判断文件扩展名,该扩展名可能会和客户端提供的扩展名不一致: $path = $request->photo->path(); $extension = $request->photo->extension(); 其他文件方法 UploadedFile 实例上还有很多其他可用方法,查看该类的0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.0 Documentation
Queued Commands v. Command Pipeline vi. Core Extension i. Managers & Factories ii. Cache iii. Session iv. Authentication v. IoC Based Extension vii. Elixir i. Introduction ii. Installation & PHP >= 5.4 Mcrypt PHP Extension OpenSSL PHP Extension Mbstring PHP Extension As of PHP 5.5, some OS distributions may require you to manually install the PHP JSON extension. When using Ubuntu, this Node (With Bower, Grunt, and Gulp) Redis Memcached Beanstalkd Laravel Envoy Fabric + HipChat Extension Before launching your Homestead environment, you must install VirtualBox and Vagrant. Both of these0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
data from the database with dynamic routes. The easiest way to use a database is by using SQLite. SQLite is just a file hosted in your site, no special setup needed. 22 Open the .env file, and instead DB_USERNAME=root DB_PASSWORD= add DB_CONNECTION=sqlite Laravel will automatically create a SQLite database in database/database.sqlite the first time you run a migration. 6. How to use means all the migrations you see in the migrations folder: 25 If you open the database/database.sqlite file using a database visualization tool like TablePlus (free version, available for all operating0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
$_GET["page"] ?? null; $id = (int) ($_GET["id"] ?? 0); // Connexion à la base de données. $db = new PDO("sqlite:../users.db"); // Page HTML ?>HE-Arc sqlite:../users.db"); // ... if ("equipe" === $page) { $personne = R::load("personnes", $id); echo $twig->render(0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.2 中文文档来开启。 预装软件 Ubuntu 14.04 Git PHP 7.0 HHVM Xdebug Nginx MySQL SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) Redis Memcached cache 文件夹 用于包含框架生成的启动文件以提高性能; config 目录包含了应用所有的配置文件; database 目录包含了数据迁移及填充文件,如果你喜欢的话还可以将其作为 SQLite 数据 库存放目录; public 目录包含了前端控制器和资源文件(图片、JavaScript、CSS 等); resources 目录包含了视图文件及原生资源文件(LESS、SASS、CoffeeScript),以及本 让连接多种数据库以及对数据库进行查询变得非常简单,不论使用原生 SQL、还是 查询构建器,还是 Eloquent ORM。目前,Laravel 支持四种类型的数据库系统: MySQL Postgres SQLite SQL Server 配置 Laravel 让连接数据库和运行查询都变得非常简单。应用的数据库配置位于 config/database.php。在该文件中你可以定义所有的数据库连接,并指定哪个连接是默认0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档cache 文件夹用 于包含框架生成的启动文件以提高性能; config 目录包含了应用所有的配置文件; database 目录包含了数据迁移及填充文件,如果你喜欢的话还可以将其作为 SQLite 数据库 存放目录; public 目录包含了前端控制器和资源文件(图片、js、css 等); resources 目录包含了视图文件及原生资源文件(LESS、SASS、CoffeeScript),以及本 让连接多种数据库和运行查询都变得非常简单,不论使用原生 SQL、还是查询构建 器,还是 Eloquent ORM。目前,Laravel 支持四种类型的数据库系统: MySQL Postgres SQLite SQL Server 1.1 配置 Laravel 让连接数据库和运行查询都变得非常简单。应用的数据库配置位于 config/database.php。在该文件中你可以定义所有的数据库连接,并指定哪个连接是默认 $table->dropColumn(['votes', 'avatar', 'location']); }); 本文档由 Laravel 学院(LaravelAcademy.org)提供 97 注意:在从 SQLite 数据库删除列之前,需要添加 doctrine/dbal 依赖到 composer.json 文 件并在终端中运行 composer update 命令来安装该库。 5.6 创建索引 表0 码力 | 307 页 | 3.46 MB | 1 年前3
共 10 条
- 1













