Laravel 5.2 中文文档App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class reported. 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 8 * * @var array */ protected $dontReport = [ AuthorizationException::class, HttpException::class class VerifyCsrfToken extends BaseVerifier { /** *从 CSRF 验证中排除的 URL * * @var array */ protected $except = [ 'stripe/*', ]; } 本文档由 Laravel 学院(LaravelAcademy0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 5.1 中文文档优化 Artisan 命令可以通过使用一个简单的,类似路由风格的“签名”(提供了一个非常简单的接口 来定义命令行参数和选项)来定义: /** * 命令行的名称和签名. * * @var string */ 本文档由 Laravel 学院(LaravelAcademy.org)提供 4 protected $signature = 'email:send {user} class VerifyCsrfToken extends BaseVerifier { /** *从 CSRF 验证中排除的 URL * * @var array */ protected $except = [ 'stripe/*', 本文档由 Laravel 学院(LaravelAcademy.org)提供 子集在生成时取消加密,可以使用中间件 App\Http\Middleware\EncryptCookies 的$except 属性: /** * 需要被加密的 cookies 名称 * * @var array */ protected $except = [ 'cookie_name', ]; 2、其它响应类型 帮助函数 response 可以用来方便地生成其他类型的响应实例,当无参数调用0 码力 | 307 页 | 3.46 MB | 1 年前3
《Slides Dev Web》 05. JavaScript & DOM
addNode() { var inText = document.getElementById("textArea").value; var newText = document.createTextNode(inText); var newGraf = document.createElement("p"); newGraf.appendChild(newText); var docBody = depuis son parent Supprimer un nœud function delNode() { var allGrafs = document.getElementsByTagName("p"); if (allGrafs.length > 1) { var lastGraf = allGrafs.item (allGrafs.length-1); lastGraf.parentNode insertNode() { var newText = document.createTextNode("New Text"); var newGraf = document.createElement("p"); newGraf.appendChild(newText); var divMod = document.getElementsByTagName("div")[0]; var allGrafs0 码力 | 10 页 | 91.95 KB | 1 年前3
Laravel 5.6 中文文档use Illuminate\Http\Request; /** * The headers that should be used to detect proxies. * * @var string */ protected $headers = Request::HEADER_X_FORWARDED_ALL; 更多关于 $headers 变量值的信息可以查看完整的信任代理文档。 location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.1-fpm.sock; fastcgi_index index.php; include fastcgi_params; } UserController extends Controller { /** * The user repository implementation. * * @var UserRepository */ protected $users; /** * Create a new controller instance0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 6.0 中文文档"type" of the primary key ID. * 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 18 * @var string */ protected $keyType = 'string'; 邮箱验证 重新发送验证路由 HTTP 方法 影响级别:中等 为了免除潜在的 CSRF 攻击,使用 Laravel access_log off; log_not_ found off; } error_page 404 /index.php; location ~ \.php$ { fastcgi_pass unix:/var/run/php/php7.2-fpm.soc k; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $realpath_root$f r; class UserController extends Controller { /** * The user repository implementation. * * @var UserRepository */ protected $users; 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.3 中文文档reported. * 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 49 * @var array */ protected $dontReport = [ \Illuminate\Auth\AuthenticationException::class, UserController extends Controller { /** * The user repository implementation. * * @var UserRepository */ 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 class RiakServiceProvider extends ServiceProvider{ /** * 服务提供者加是否延迟加载. * * @var bool */ protected $defer = true; 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.0 Documentation
can type-hint it on our controller action: public function register(RegisterRequest $request) { var_dump($request->input()); } When the Laravel IoC container identifies that the class it is injecting UserRepository; class ProfileComposer { /** * The user repository implementation. * * @var UserRepository */ protected $users; /** * Create a new profile composer. * ServiceProvider { /** * Indicates if loading of the provider is deferred. * * @var bool */ protected $defer = true; /** * Register the service provider. *0 码力 | 242 页 | 1.44 MB | 1 年前3
Learning Laravelfolder called laravel (or anything you like) on the same level as the public_html folder. Eg: / |--var |---www |----laravel //create this folder in your shared hosting account https://riptutorial /** * The attributes that aren't mass assignable. * https://riptutorial.com/ 71 * @var array */ protected $guarded = []; } But you can also create a record without even changing $ cd /var/www $ git clone https://github.com/laravel/laravel.git Navigate to Laravel code directory and use composer to install all dependencies required for Laravel framework. $ cd /var/www/laravel0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 06. HTTP & AJAX
• Supporté par la majorité des navigateurs • Alternative souhaitable si JS désactivé XHR en JS var xhr; function createXMLHttpRequest() { if (window.ActiveXObject) { xhr = new ActiveXObject("Microsoft {"nom": "Borgo", "prénom": "Sébastien"}, {"nom": "Bux", "prénom": "Rémy"} ] • Utilisation de : var users = eval(‘(’ + myXHR.responseText + ‘)’); pour créer le tableau d’objets correspondant « eval : instructions au lieu d’un tableau d’objets • Solution : le parser21 JSON var users = JSON.parse(myXHR.responseText); var myString = JSON.stringify(users); • Avec jQuery : 17https://www.json.org/0 码力 | 11 页 | 91.09 KB | 1 年前3
Laravel 3.2 Documentation"Artisan" CLI. Simple specify the request method and URI you want to use. The route response will be var_dump'd back to the CLI. Calling a route via the Artisan CLI: php artisan route:call get api/user/1 attribute is an e-mail address: 'address' => 'email' Note: This rule uses the PHP built-in filter_var method. URLs Validate that an attribute is a URL: 'link' => 'url' Validate that an attribute For example, if email address validation failed, we can look for 'email' within the $errors session var. $errors->has('email') Using Blade, we can then conditionally add error messages to our view.0 码力 | 139 页 | 1.13 MB | 1 年前3
共 13 条
- 1
- 2













