Laravel 5.6 中文文档5.2、VMWare、Parallels 或 Hyper-V (四选一,我们通常选择 VirtualBox,因为只有它是免费的) 以及 Vagrant,所有这些软件包都为常用操作系统提供了一个便于使用的可视化安装器,通过安装界面引导就可以完成安装。 要使用 VMware 的话,需要购买 VMware Fusion(Mac) / Workstation(Windows) 以及 VMware Vagrant 多块人民币,但是 VMware 可以提供更好的性能和体验(废话,不然谁用,不过考虑到这个价格,只能呵呵了)。 要使用 Parallels 的话,需要安装 Parallels Vagrant 插件,这是免费的(仅仅是插件免费哈)。 由于 Vagrant 限制的因素,Hyper-V 提供者会忽略所有网络设置。 安装 Homestead Vagrant 盒子 VirtualBox/VMWare 和 Vagrant 配置 Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、vmware_fushion、 vmware_workstation、 parallels 或 hyperv,你可以将其设置为自己选择的提供者,当然对大部分人来说也没得选: provider: virtualbox0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档1 首次安装 在启用 Homestead 环境之前,需要先安装 Virtual Box 或者 VMWare 和 Vagrant,所有这些 软件包都会常用操作系统提供了一个便于使用的可视化安装器。 2.1.1 安装 Homestead Vagrant 盒子 VirtualBox/VMWare 和 Vagrant 安装好了之后,在终端中使用能如下命令将 laravel/homesterad Homestead 2.2.1 设置 Provider Homestead.yaml 文件中的 provider 键表示哪个 Vagrant 提供者将会被使用:virtualbox、 vmware_fushion,还是 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 2.2.2 设置 SSH key 在 Homestead.yaml 44 2.1 视图响应 如果你需要控制响应状态和响应头,还需要返回一个视图作为响应内容,可以使用 view 方 法: return response()->view('hello', $data)->header('Content-Type', $type); 当然,如果你不需要传递一个自定义的 HTTP 状态码或者自定义头,只需要简单使用全局 的帮助函数 view 即可。 20 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 6.0 中文文档Virtual Box、VMWare、 Parallels 或 Hyper-V (四选一,我们通常选择 VirtualBox,因为只 有它是免费的)以及 Vagrant,所有这些软件包都为常用操作系统提 供了一个便于使用的可视化安装器,通过安装界面引导就可以完成安 装。 注:直接下载安装相应软件的最新版本即可。 要使用 VMware 的话,需要购买 VMware Fusion(Mac) Fusion(Mac) / Workstation(Windows) 以及 VMware Vagrant 插件,尽管不便宜, 一套下来要 1000 多块人民币,但是 VMware 可以提供更好的性能 和体验(废话,不然谁用,不过考虑到这个价格,只能呵呵了)。 要使用 Parallels 的话,需要安装 Parallels Vagrant 插件,这是免费 的(仅仅是插件免费哈)。 由于 Vagrant 限制的因素,Hyper-V 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 57 安装 Homestead Vagrant 盒子 VirtualBox/VMWare 和 Vagrant 安装好了之后,在终端中使用如下 命令将 Homestead Vagrant 盒子 laravel/homesterad 添加到 Vagrant 中。下载该盒子将会花费一些时间,具体时间长短主要取决于你的网0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.2 中文文档2、安装 & 设置 首次安装 在使用 Homestead 之前,需要先安装 Virtual Box/VMWare 和 Vagrant,所有这些软件包 都为常用操作系统提供了一个便于使用的可视化安装器。 安装 Homestead Vagrant 盒子 VirtualBox/VMWare 和 Vagrant 安装好了之后,在终端中使用能如下命令 将 laravel/homesterad 添加到 Homestead 设置 Provider Homestead.yaml 文件中的 provider 键表示使用哪个 Vagrant 提供者:virtualbox、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的 folders 类实例,该契约提供了一些有用的方法来生成响应。 视图 如果你需要控制响应状态和响应头,并且还需要返回一个视图作为响应内容,可以使 用 view 方法: return response()->view('hello', $data)->header('Content-Type', $type); 当然,如果你不需要传递自定义的 HTTP 状态码和头信息,只需要简单使用全局辅助函 数 view 即可。 JSON json0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.3 中文文档single job... php artisan queue:work --once 事件数据修改 多个队列任务事件如 JobProcessing 和 JobProcessed 将不再包含$data 属性,你需要更新应用调 用$event->job->payload()来获取对应数据。 失败任务表 如果你的应用有了 failed_jobs 表,需要添加 exception 字段到这张表,exception Virtual Box 5.x/VMWare 和 Vagrant,所有这些软件包都为 常用操作系统提供了一个便于使用的可视化安装器。 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 54 安装 Homestead Vagrant 盒子 VirtualBox/VMWare 和 Vagrant 中文学习资源 55 Homestead.yaml 文 件 中 的 provider 键 表 示 使 用 哪 个 Vagrant 提 供 者 : virtualbox 、 vmware_fushion 或者 vmware_workstation,你可以将其设置为自己喜欢的提供者: provider: virtualbox 配置共享文件夹 Homestead.yaml 文件中的0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
– (bootstrap, ré-écriture des URL, …) • Object Relational Mapping5 – Active Record, Table Data Gateway, Data Mapper, … • UI Patterns6 MVC for webdev Conventions • Nommage – Classes – Base de données html"; } else { // ... include "templates/accueil.html"; } 13 Quel est le problème avec cette solution? (Source de l’image19) Sécurité des templates • Principle of Least Privilege ( polp20 ) • Intégration connaitre tous les champs crée beaucoup de redondance et de failles de sécurité potentielles. Une solution est d’ajouter une couche d’abstraction qui va cacher la structure réelle de notre base de données0 码力 | 24 页 | 1.03 MB | 1 年前3
The PHP Handbook
HTML. PHP is a scripting language, whose goal is to be able to “decorate” an HTML page with dynamic data. Note that with modern PHP, we generally avoid mixing PHP into the HTML, and instead PHP is used a framework like “easy mode” because frameworks give you tools to handle routing, tools to access data from a database, they make it easier to build more secure application. And make it all faster to requests, including GET, POST and other verbs. For any request you can access all the query string data using the $_GET object which is called superglobal and is automatically available in all our PHP0 码力 | 97 页 | 8.78 MB | 1 年前3
CakePHP Cookbook 2.x
Tutorial - Adding a layer Create a Post Model Create a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion Additional Reading Installation Requirements Understanding Models More on models Associations: Linking Models Together Retrieving Your Data Saving Your Data Deleting Data Data Validation Callback Methods Behaviors DataSources Model Attributes Additional Methods & configuration Setting ini directives Creating a custom session handler Reading & writing session data Exceptions Exception configuration Exception classes Built-in Exceptions for CakePHP Using HTTP0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
something like this: $ chown -R www-data app/tmp If for some reason CakePHP can’t write to that directory, you’ll see warnings and uncaught exceptions that cache data cannot be written. 4 https://git-scm MultiViews AllowOverride All Order Allow,Deny Allow from all On Mac OSX, another solution is to use the tool virtualhostx5 to make a Virtual Host to point to your folder. For many hosting your code using “routes” covered later on. The single instruction in the action uses set() to pass data from the controller to the view (which we’ll create next). The line sets the view variable called0 码力 | 820 页 | 2.52 MB | 1 年前3
Learning LaravelChecking for Existence 21 Raw echos 21 Including Partial Views 21 Layout Inheritance 22 Sharing data to all views 24 Using View::share 24 Using View::composer 24 Closure-based composer 24 Class-based Database Seeding 60 Examples 60 Running a Seeder 60 Creating a Seed 60 Inserting Data using a Seeder 60 Inserting data with a Model Factory 61 Seeding with MySQL Dump 61 Using faker And ModelFactories 157 Examples 157 Inserting data 157 Using the DB Facade 157 Via Instantiating a Model 157 Using the create method 157 Using factory 158 Seeding && deleting old data and reseting auto-increment 1580 码力 | 216 页 | 1.58 MB | 1 年前3
共 82 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9













