Learning Laravela Seed 60 Inserting Data using a Seeder 60 Inserting data with a Model Factory 61 Seeding with MySQL Dump 61 Using faker And ModelFactories to generate Seeds 62 Chapter 19: Deploy Laravel 5 App on (Basic) 117 Hello World Example With Views and Controller 117 The view 117 The controller 117 The router 118 Chapter 34: Introduction to laravel-5.2 119 Introduction 119 Remarks 119 Examples 119 Installation Laravel 5.2.31 + Syntax public function map(Router $router) // Define the routes for the application. • protected function mapWebRoutes(Router $router) // Define the "web" routes for the application0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
distribution, allowing the box to boot extremely quickly. Homestead includes Nginx 1.6, PHP 5.6, MySQL, Postgres, Redis, Memcached, Beanstalk, Node, Gulp, Grunt, & Bower. Homestead includes a simple app/config/queue.php file. Here are the default values for the section: 'failed' => array( 'database' => 'mysql', 'table' => 'failed_jobs', ), (Optional) Update the pagination configuration option in your app/config/view Homestead runs on any Windows, Mac, or Linux system, and includes the Nginx web server, PHP 5.6, MySQL, Postgres, Redis, Memcached, and all of the other goodies you need to develop amazing Laravel applications0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationfollowing 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 you are In the following example the first parameter is the route that you're "registering" with the router. The second parameter is the function containing the logic for that route. Routes are defined without Route::delete('user/(:num)', function($id) { // }); Registering a single URI for multiple HTTP verbs: Router::register(array('GET', 'POST'), $uri, $callback); 16 Wildcards Forcing a URI segment0 码力 | 139 页 | 1.13 MB | 1 年前3
Laravel 5.2 中文文档Illuminate\Queue\Events\WorkerStopping mailer.sending Illuminate\Mail\Events\MessageSending router.matched Illuminate\Routing\Events\RouteMatched 这些事件对象传入参数和 Laravel 5.1 的事件处理器一样,例如,如果你在 Laravel 如果出现错误,可以在数分钟内销毁并重新创建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP7.0、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 过 BIOS 来开启。 预装软件 Ubuntu 14.04 Git PHP 7.0 HHVM Xdebug Nginx MySQL SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) Redis0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档盒子是一次性的,如果出现错误,可以在数分钟内销毁并重新创 建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、 PHP5.6、MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发牛逼 Laravel 应用所需要的东西。 注意:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 Homestead 目前基于 Vagrant 1.7 进行构建和测试。 1.1 包含软件 Ubuntu 14.04 PHP 5.6 HHVM Nginx MySQL Postgres Node (With PM2, Bower, Grunt, and Gulp) Redis Memcached Beanstalkd 默认已经在 homestead 中为 MySQL 和 Postgres 数据库做好了配置,更加方便的是,Laravel 的 local 数据库配置已经为使用数据库做好了设置。 想要通过本地的 Navicat 或 Sequel Pro 连接上 MySQL 或 Postgres 数据库,可以通过新建 连接来实现,主机 IP 都是 127.0.0.1,对于 MySQL 而言,端口号是 33060,对 Postgres0 码力 | 307 页 | 3.46 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
$twig->render("accueil.html", compact("titre", "personnes")); } Problème d’injection SQL. Effectuer des requêtes MySQL à la main ou devoir connaitre tous les champs crée beaucoup de redondance et de failles de sécurité sur un système proche de celui que nous avons utilisé jusqu’ici. D’autres systèmes, tels que Aura.Router pour ne citer que lui, reposent sur la spécification PSR-737. Cette dernière décrit l’interface objet partir de 00-base. • Tel quel ou en utilisant d’autres bibliothèques : Smarty39, Doctrine40, Aura.Router41 Fin Questions? Sources 1. W3C. W3C 20 Anniversary Symposium. [en ligne]. 2014. [Consulté le0 码力 | 24 页 | 1.03 MB | 1 年前3
The Laravel Handbook
which means the “home page”. This URL is handled in the routes/web.php file, which contains the router dedicated to handling HTTP requests coming from the browser. In this file, as shown in the screenshot setup needed. 22 Open the .env file, and instead of the default configuration DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel DB_USERNAME=root DB_PASSWORD= add what to do. For example we’ll create a form that sends a POST request to the /dogs route. The router will say “this controller is in charge” and will tell us which method to use. Inside the controller0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档Laravel 5.6 引入了两个新的方法来生成 UUID:Str::uuid 和 Str::orderedUuid,orderedUuid 方法会生成一个时间戳最靠前的 UUID,通过诸如 MySQL 的数据库来索引,更简单,也更高效。两个方法都会返回 Ramsey\Uuid\Uuid 对象: use Illuminate\Support\Str; return (string) Str::uuid(); Vagrant 盒子(关于 Vagrant 盒子的释义请参考 Vagrant 官方文档), 该盒子为我们提供了一个优秀的开发环境,有了它,我们不再需要在本地环境安装 PHP、Composer、Nginx、MySQL、Memcached、Redis、Node 等其它工具软件,我们也完全不用再担心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的,如果出现错误,可以在数分钟内销毁并重新创 建该 Vagrant 16.04 Git PHP 7.2 PHP 7.1 PHP 7.0 PHP 5.6 Nginx Apache(可选) MySQL MariaDB(可选) SQLite3 PostgresSQL Composer Node(With Yarn, Bower, Grunt, and0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档53 数分钟内销毁并重新创建该 Vagrant 盒子! Homestead 可以运行在 Windows、Mac 以及 Linux 系统上,其中已经安装好了 Nginx、PHP7.0、 MySQL、Postgres、Redis、Memcached、Node 以及很多其它开发 Laravel 应用所需要的东西。 注:如果你使用的是 Windows,需要开启系统的硬件虚拟化(VT-x),这通常可以通过 以便可以访问 VT-x。 预装软件 Ubuntu 16.04 Git PHP 7.0 HHVM Xdebug Nginx MySQL MariaDB SQLite 3 Postgres Composer Node(With PM2, Bower, Grunt, and Gulp) homestead.app。 安装 MariaDB 如果你希望使用 MariaDB 来替代 MySQL,可以添加 mariadb 配置项到 Homestead.yaml 文件,该 选项会移除 MySQL 并安装 MariaDB,MariaDB 是 MySQL 的替代品,所以在应用数据库配置中你 仍然可以使用 mysql 驱动: box: laravel/homestead ip: "192.1680 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档Vagrant 盒子(关于 Vagrant 盒子的释义请参考 Vagrant 官方文档),该盒子为我们提供了一个优秀的开发环境,有了它,我 们不再需要在本地环境安装 PHP、Composer、Nginx、MySQL、 Memcached、Redis、Node 等其它工具软件,我们也完全不用再担 心误操作搞乱操作系统 —— 因为 Vagrant 盒子是一次性的,如果 出现错误,可以在数分钟内销毁并重新创建该 中文学习资源:https://xueyuanjun.com 54 Git PHP 7.3 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 Docker Elasticsearch Gearman Go Grafana InfluxDB MariaDB MinIO MongoDB MySQL 8 Neo4j Oh My Zsh Open Resty 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com0 码力 | 1442 页 | 14.66 MB | 1 年前3
共 10 条
- 1













