-
'prefix' => '', ], 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE' public folder from your laravel project (on development machine) in the laravel folder (on server host - shared hosting account). You can use: C-panel : which would be the slowest option • FTP Client: project (on development machine), copy everything and paste in the public_html folder (on server host - shared hosting account). Step 4 Now open the index.php file in the public_html folder on the shared
0 码力 |
216 页 |
1.58 MB
| 1 年前 3
-
通过 Mailhog 可以轻松拦截发送出去的邮件并进行检查而不必真的 将其发送给接收人。开始之前,需要更新 .env 文件使用如下邮件配 置: MAIL_DRIVER=smtp MAIL_HOST=localhost MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null 配置好 Mailhog yml contains a different subnet for the IP address, this address may be different... xdebug.remote_host = 192.168.10.1 xdebug.remote_autostart = 1 使用 Blackfire 分析应用 Blackfire 是一个用于分析 Web 请求和 CLI 应用以及编写性能断 发环境中开发,需要自己创建数据库,我们将数据库命名为 valet, 本地的数据库用户名为 root,密码为空,对应地,修改 .env 文件配 置如下: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=valet DB_USERNAME=root DB_PASSWORD= 具体配置值以你自己的开发环境设置为准。我们将基于
0 码力 |
1442 页 |
14.66 MB
| 1 年前 3
-
Maillog 通过 Maillog 可以轻松拦截发送出去的邮件并进行检查而不必真的将其发送给接收人。开始之前,需要更新 .env 文件使用如下邮件配置: MAIL_DRIVER=smtp MAIL_HOST=localhost MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null 端口转发配置 开发环境中开发,需要自己创建数据库,我们将数据库命名为 valet,本地的数据库 用户名为 root,密码为空,对应地,修改 .env 文件配置如下: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=valet DB_USERNAME=root DB_PASSWORD= 具体配置值以你自己的开发环境设置为准。我们将基于 响应中构建链接,或者生成重定向响应。 快速入门 生成 URL url 辅助函数可用于为应用生成任意 URL,并且生成的 URL 会自动使用当前请求的 scheme(HTTP or HTTPS) 和 host 属性: $post = App\Post::find(1); echo url("/posts/{$post->id}"); // 输出 http://example.com/posts/1
0 码力 |
377 页 |
14.56 MB
| 1 年前 3
-
Entêtes de requête (Host, Referer, User-Agent, …) et réponse (Content-Type, Set- Cookie, Location, …) • HTTP 1.1 (1997) – Nouveaux entêtes (Keep-alive, pipelining, cache, …), Host obligatoire • HTTP ressource • TRACE, OPTIONS, CONNECT idempotentes sûres Echanges HTTP • Requête GET / HTTP/1.1[CRLF] Host: www.cff.ch[CRLF] Connection: close[CRLF] User-Agent: Opera/9.20 (Windows NT 6.0; U; en)[CRLF] Accept-Encoding: ch/fr/">here.