Laravel 3.2 Documentation
........................................................................................... 12 Server Configuration .................................................................................. ............... 72 Registering Objects ...................................................................................................... 73 Resolving Objects ................................. new objects and optionally instantiating and referencing singletons. IoC means that you'll rarely ever need to bootstrap any external libraries. It also means that you can access these objects from0 码力 | 139 页 | 1.13 MB | 1 年前3Laravel 5.0 Documentation
Vulnerabilities v. Coding Style 3. Setup i. Installation i. Install Composer ii. Install Laravel iii. Server Requirements ii. Configuration i. Introduction ii. After Installation iii. Accessing Configuration gistrar service is responsible for user validation and creation. You may now define events as objects instead of simply using strings. For example, check out the following event: class PodcastWasPurchased format supported in Laravel 4, Laravel 5 allows you to represent your queued jobs as simple command objects. These commands live in the app/Commands directory. Here's a sample command: class PurchasePodcast0 码力 | 242 页 | 1.44 MB | 1 年前3Learning Laravel
Chapter 19: Deploy Laravel 5 App on Shared Hosting on Linux Server 65 Remarks 65 Examples 65 Laravel 5 App on Shared Hosting on Linux Server 65 Chapter 20: Directory Structure 68 Examples 68 Change Examples 95 Configuration 95 Basic Usage 95 Custom Filesystems 97 Creating symbolic link in a web server using SSH 98 Chapter 28: Form Request(s) 99 Introduction 99 Syntax 99 Remarks 99 Examples 99 Create-Project 103 Setup 103 Server Requirements 103 Local Development Server 104 Hello World Example (Basic) and with using a view 104 Hello World Example (Basic) 105 Web Server Configuration for Pretty0 码力 | 216 页 | 1.58 MB | 1 年前3Laravel 5.6 中文文档
Nginx,可以使用下面的配置文件配置 Web 服务器。大部分情况下,这个文件需要根据服务器的配置做一些调整 (如果你想要一个工具来协助管理服务器,可以考虑使用 Laravel Forge): server { listen 80; server_name example.com; root /example.com/public; add_header X-Frame-Options $this->app->resolving(HelpSpot\API::class, function ($api, $app) { // Called when container resolves objects of type "HelpSpot\API"... }); 正如你所看到的,被解析的对象将会传递给回调函数,从而允许你在对象被传递给消费者之前为其设置额外属性。 PSR-11 Laravel SQL、还是查询构建器,还是 Eloquent ORM。目前, Laravel 支持四种类型的数据库系统: MySQL Postgres SQLite SQL Server 配置 应用的数据库配置位于 config/database.php(但是数据库用户及密码等敏感信息位于 .env 文件,如果你还不知道 .env 是何方神圣,那么你可能 需要到这里补补0 码力 | 377 页 | 14.56 MB | 1 年前3Laravel 5.3 中文文档
认证变得简单。Laravel Passport 可以在几分钟内为应用 提供一个完整的 Oauth2 服务器实现,Passport 基于 Alex Bilbie 维护的 League OAuth2 server 实 现。 Passport 使得通过 OAuth2 授权码获取访问令牌(access token)变得轻松,你还可以允许用户通 本文档由 Laravel 学院(LaravelAcademy $this->app->resolving(HelpSpot\API::class, function ($api, $app) { // Called when container resolves objects of type "HelpSpot\API"... }); 正如你所看到的,被解析的对象将会传递给回调函数,从而允许你在对象被传递给消费者之前为 其设置额外属性。 4.2 服务提供者 org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 265 而易举,Passport 基于 Alex Bilbie 维护的 League OAuth2 server,可以在数分钟内为 Laravel 应用 提供完整的 OAuth2 服务器实现。 注:本文档假设你已经很熟悉 OAuth2,如果你对 OAuth2 一无所知,那么在开始学习文文档之前, 先要去熟悉0 码力 | 691 页 | 9.37 MB | 1 年前3Laravel 6.0 中文文档
上提议新功能或者优化已有功能,如果是新功 能的话请至少实现部分代码以便完成新功能开发。 关于 Laravel 的 bug、新功能、以及现有功能实现的非正式讨论可 以在 Laravel Discord server 的 #internals 频道进行。Taylor Otwell,Laravel 框架的维护者,通常在工作日的上午 8 点到下午 5 点(美西时间或芝加哥时间)在线,其它时间也可能偶尔在线。 当前版本中完全向后兼容的次要特性也可以提交到最新的稳定分支。 重要的新特性总是要被提交到 master 分支,包括下个发行版本。 如果你不确定是重要特性还是次要特性,请在 Laravel Discord server 的 #internals 频道咨询 Taylor Otwell。 编译前端资源 如果你提交的文件更改会影响前端编译文件,通常这种文件位 于 1aravel/laravel 仓库 的 resources/sass 在 $_ENV 和 $_SERVER 中屏蔽它们: return [ // ... 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 40 'debug_blacklist' => [ '_ENV' => [ 'APP_KEY', 'DB_PASSWORD', ], '_SERVER' => [ 'APP_KEY'0 码力 | 1442 页 | 14.66 MB | 1 年前3The Laravel Handbook
deployment, for example locally in development you can have debug enabled, while on the production server you don’t want that. Some options in config files, like the ones you see above, make use of the specific. 3. Blade The view files that end with .blade.php and are Blade templates. Blade is a server-side templating language. In its basic form it’s HTML. As you can see, those templates I used above case you need to restore to a previous state of your data. From the terminal, stop the Laravel server and run this command to create a new migration, which is what we will use to create the database0 码力 | 111 页 | 14.25 MB | 1 年前3《Slides Dev Web》 05. JavaScript & DOM
20https://www.promisejs.org/ 21https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise 22https://web.dev/articles/promises?hl=fr 3 escape(), unescape(), isFinite(), isNaN(),0 码力 | 10 页 | 91.95 KB | 1 年前3《Slides Dev Web》02. Introduction aux frameworks PHP
$query->execute(compact('id')); $personne = $query->fetch(PDO::FETCH_OBJ); ?>Équipe
prenom ?> nom 28http://nginx.org/en/docs/http/ngx_http_core_module.html#try_files 18 // 04-routes/index.php $uri = $_SERVER['REQUEST_URI'], $matches = []; preg_match( "#^/(?P
[^/]+)/(?P [^/]+)/?#", $uri, $matches '/equipe/{slug}', 'equipe' ); }); SERVER["REQUEST_METHOD"]; $uri = $_SERVER["REQUEST_URI"]; // nettoyage de $uri // - prefix // - query string // - caractères 0 码力 | 24 页 | 1.03 MB | 1 年前3Laravel 5.2 中文文档
需要的软件包已经预安装到 Homestead 盒子,你只需要 在 Homestead.yaml 文件中设置 Blackfire Server ID 和 token: blackfire: - id: your-server-id token: your-server-token client-id: your-client-id client-token: SQL、还是 查询构建器,还是 Eloquent ORM。目前,Laravel 支持四种类型的数据库系统: MySQL Postgres SQLite SQL Server 配置 Laravel 让连接数据库和运行查询都变得非常简单。应用的数据库配置位于 config/database.php。在该文件中你可以定义所有的数据库连接,并指定哪个连接是默认 多种广播驱动:Pusher、Redis 以及一个服务于本地开发和调试的日志驱动。每一个驱动都 有一个配置示例。 广播预备知识 事件广播需要以下两个依赖: Pusher: pusher/pusher-php-server ~2.0 Redis: predis/predis ~1.0 队列预备知识 在开始介绍广播事件之前,还需要配置并运行一个队列监听器。所有事件广播都通过队列 任务来完成以便应用的响应时间不受影响。0 码力 | 377 页 | 4.56 MB | 1 年前3
共 13 条
- 1
- 2