The Laravel Handbook
database 8. Adding a better layout 9. Adding the form at the bottom of the list 10. Allow users to delete dogs from the list 11. Adding authentication using Laravel Breeze 12. Only authenticated users Each model represents a specific table in the database, and we use it to create, read, update and delete records. Create the model from the terminal with this command: php artisan make:model Dog 27 model is a resource, and once you define a model you’ll later be able to create a new resource, delete, update it. Now let’s build a form to add a new dog to the database. Let’s add a new entry to0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.0 Documentation
Locking iii. Eloquent ORM i. Introduction ii. Basic Usage iii. Mass Assignment iv. Insert, Update, Delete v. Soft Deleting vi. Timestamps vii. Query Scopes viii. Global Scopes ix. Relationships x. To upgrade your User model for Laravel 5's authentication system, follow these instructions: Delete the following from your use block: use Illuminate\Auth\UserInterface; use Illuminate\Auth\Rem commands from start/artisan.php into the command array of the app/Console/Kernel.php file. Delete the two migrations included with Laravel 5.0, since you should already have the users table in your0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.2 中文文档cache.hit Illuminate\Cache\Events\CacheHit cache.write Illuminate\Cache\Events\KeyWritten cache.delete Illuminate\Cache\Events\KeyForgotten connection.{name}.beginTransaction Illuminate\Database\ Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri, $callback); Route::options($uri, $callback); 有时候还需要注册路由响应多个 HTTP 请求——这可以通过 match 方法来实现。或者, csrf_token(); ?>"> 当然还可以使用 Blade 模板引擎提供的方式: {!! csrf_field() !!} 你不需要自己编写代码去验证 POST、PUT 或者 DELETE 请求的 CSRF 令牌,因为 Laravel 自带的 HTTP 中间件 VerifyCsrfToken 会为我们做这项工作:将请求中输入 的 token 值和 Session 中的存储的 token0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 3.2 Documentationshort-cut bug. Upgrading From 3.1.3 Replace the laravel folder. Laravel 3.1.3 Fixes delete method in Eloquent models. Upgrade From 3.1.2 Replace the laravel folder. Laravel 3.1.2 start file until you see the default Autoloader registrations (line 61 and line 76). 10 Delete both of these sections since you just pasted your previous auto-loader registrations at the bottom return "Hello World!"; }); Registering a route that is valid for any HTTP verb (GET, POST, PUT, and DELETE): Route::any('/', function() { return "Hello World!"; }); Registering routes for other0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning Laravelthe failed queue jobs database table queue:flush Flush all of the failed queue jobs queue:forget Delete a failed queue job queue:listen Listen to a given queue queue:restart Restart queue worker daemons show GET /photos/{photo}/edit edit photos.edit PUT/PATCH /photos/{photo} update photos.update DELETE /photos/{photo} destroy photos.destroy Read Controllers online: https://riptutorial.com/laravel ($request->method() === 'OPTIONS') { header('Access-Control-Allow-Methods: GET, POST, PUT, OPTIONS, DELETE, PATCH'); header('Access-Control-Allow-Headers: ' . $request->header('Access-Control-Request-0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.1 中文文档() { return 'Hello World'; }); Route::put('foo/bar', function () { // }); Route::delete('foo/bar', function () { // }); 为多个动作注册路由 有时候需要注册一个路由来响应多个不同的 HTTP 动作,你可以使用 Route 门面的 match echo csrf_token (); ?>"> 当然还可以使用 Blade 模板引擎提供的方式: {!! csrf_field() !!} 你不需要了解在 POST、PUT 或者 DELETE 请求时 CSRF 令牌是如何进行验证的,HTTP 中间件 VerifyCsrfToken 会为我们做这项工作:将请求中输入的 token 值和 session 中的存 储的作对比。 5.2 框架,比如 Angular,将会为你自动进行设置, 基本上你不太会手动设置这个值。 6、表单方法伪造 HTML 表单不支持 PUT、PATCH 或者 DELETE 动作,因此,当定义被 HTML 表单调用的 PUT、 PATCH 或 DELETE 路由时,需要添加一个隐藏的_method 字段到给表单中,其值被用作 HTTP 请求方法名:0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.6 中文文档/home/vagrant/code type: "rsync" options: rsync__args: ["--verbose", "--archive", "--delete", "-zz"] rsync__exclude: ["node_modules"] 配置 Nginx 站点 对 Nginx 不熟?没关系!通过 sites 属性你可以方便地将“域名”映射到 Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri, $callback); Route::options($uri, $callback); 有时候还需要注册一个路由响应多种 HTTP 请求动作 —— 这可以通过 match 方法来实现。或者,可以使用 路由群组,该群组下的路由主要用于 第三方 API 请求,没办法进行 CSRF 检查,所以不需要做任何处理。 CSRF 保护 在 routes/web.php 路由文件中所有请求方式为 PUT、POST 或 DELETE 的路由对应的 HTML 表单都必须包含一个 CSRF 令牌字段,否则,请求会被 拒绝。关于 CSRF 的更多细节,可以参考 CSRF 文档:0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档学院致力于提供优质 Laravel 中文学习资源 101 Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri, $callback); Route::options($uri, $callback); 有时候还需要注册路由响应多个 HTTP 请求——这可以通过 match 方法来实现。或者,可以使 }); Route::any('foo', function () { // }); CSRF 防护 在 web 路由文件中所有请求方式为 PUT、POST 或 DELETE 的 HTML 表单都会包含一个 CSRF 令牌字 段,否则,请求会被拒绝。关于 CSRF 的更多细节,可以参考其文档:0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档Laravel 中文学习资源:https://xueyuanjun.com 77 4. 运行 sudo lmm merge prod-YYYY-MM-D 撤销所有修改; 5. 运行 sudo lmm delete删除不需要的分支。 添加更多站点 Homestead 虚拟机在运行时,可能需要添加多个 Laravel 应用到 Nginx 站点。如果是在单个 Homestead 环境中运行多个 Route::post($uri, $callback); Route::put($uri, $callback); Route::patch($uri, $callback); Route::delete($uri, $callback); Route::options($uri, $callback); 有时候还需要注册一个路由响应多种 HTTP 请求动作 —— 这可以 通过 match 路由主要用于 第三方 API 请求,没办法进行 CSRF 检查,所以不 需要做任何处理。 CSRF 保护 在 routes/web.php 路由文件中所有请求方式为 PUT、 POST 或 DELETE 的路由对应的 HTML 表单都必须包含一个 CSRF 令牌字段,否则,请求会被拒绝。关于 CSRF 的更多细节,可以参 考 CSRF 文档: 0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 09. Services Web
méthodes HTTP (verbes) ∗ GET : READ (sûre) ∗ POST : CREATE ∗ PUT, PATCH : UPDATE (idempotente) ∗ DELETE : DELETE (idempotente) – Les liens hypertextes permettent de représenter le contenu : navigation – Les GET /blogs/42/edit Formulaire édition blog 42 U Update PUT /blogs/42 MAJ en DB blog 42 D Destroy DELETE /blogs/42 Suppression ne DB blog 42 • Laravel, Django, Rails, … sont RESTful ! 4 Niveaux de maturité0 码力 | 6 页 | 47.90 KB | 1 年前3
共 12 条
- 1
- 2













