Learning Laravelsoon Contribution Style Guide Coming soon About Laravel Created by Taylor Otwell as a free open-source PHP web framework, Laravel is meant to ease and accelerate the development process of web applications code into their parent. For example: parent.blade.php: is child page!" in red, while View::make('otherpage') will produce the same html, except with the text "This is another page!" in blue instead. It is common to separate the view files, e.g. having a0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
command they wished to schedule. However, this is a headache. Your console schedule is no longer in source control, and you must SSH into your server to add the Cron entries. Let's make our lives easier application will invalidate the cookie. First, add a new, nullable remember_token of VARCHAR(100), TEXT, or equivalent to your users table. Next, if you are using the Eloquent authentication driver, report serves to help yourself and others start on the path of fixing the problem. The Laravel source code is managed on Github, and there are repositories for each of the Laravel projects: Laravel0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 3.2 Documentationthat echos the text that is passed to it. We create the printer.php file in the libraries folder with the following code. text) { echo $text; } } You can now call Printer::write('this text is being echod from the write method!') from anywhere within your application. Auto Loading Libraries and Models are very easy to different languages. The Lang class provides a simple mechanism to help you organize and retrieve the text of your multilingual application. All of the language files for your application live under the0 码力 | 139 页 | 1.13 MB | 1 年前3
《Slides Dev Web》 10. Rwdprint, tv, braille, handheld, ... • media query query 1. dans élément link 2. dans une feuille de style #nav {float: right;} #nav ul {list-style:, <source> – Attributs srcset et sizes • Besoins9 – Écrans haute densité : srcset – Taille variable : srcset et sizes – Substitution10 et modification layout : , <source> – Choix formats 0 码力 | 7 页 | 76.36 KB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
net/manual/en/history.php.php 13https://en.wikipedia.org/wiki/PHP 14http://getcomposer.org/ 8 Figure 5: source15 9 (1) Donc, ce ne sont pas Gandalf (sans sa barbe) et Saruman mais bien Sir Tim Berners-Lee "http://he-arc.ch/?id=25" > GET /?id=25 HTTP/1.1 > Host: he-arc.ch > < HTTP/1.1 200 OK < Content-Type: text/html; charset=utf-8 <HE-Arc Hello HTTP est un protocole texte sont en US-ASCII mais le corps peut être encodé autrement, ici c’est dit dans l’entête Content-Type: text/html; charset=utf-8. 17https://github.com/HE-Arc/php-intro-framework 18https://github.com/HE-Arc
0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 6.0 中文文档以用来设置系统 PATH,不同之处在于前者是给系统超级 用户使用,后者是给普通登录用户使用的,此外要 让 ~/.bash_profile 修改后生效,有两种方法,一种是 退出系统重新登录,一种是使用 source ~/.bash_profile 命令。 Windows 在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set ho 还提供了一个全局的辅助函数 old(),如果你是在 Blade 模 板中显示上次输入数据,使用辅助函数 old() 更方便,如果给定参 数没有对应输入,返回 null: Cookie 从请求中取出 Cookie 为了安全起见,Laravel 框架创建的所有 Cookie Route::get('cookie/response', function () { return response('Hello World', 200) ->header('Content-Type', 'text/plain'); }); 添加响应头 大部分响应方法都可以以方法链的形式调用,从而可以流式构建响应 (流接口模式)。例如,在发送响应给用户前可以使用 header 方法 来添加一系列响应头:0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 12. Risques applicatifs
le GUI du navigateur pas toujours suffisant • Ne pas utiliser de lien dont on n’est pas sur de la source (Homograph Attack13, Homo- glyphes14, Unicode Spoofing15) Risques non liés à l’application • IoT com/codebox/homoglyph/blob/master/raw_data/char_codes.txt 15https://onlineunicodetools.com/spoof-unicode-text 16https://www.shodan.io/ 5 • Buffer Overflows (surtout en C) • Trojans, backdoors • Usurpation de Figure 1: top 500 passwords cloud Mots de passe • 30% of users have a password from the top 10’000 (source17) • Our passwords habits revealed18 • xkcd’s password strength19 17https://mojoauth.com/blog/0 码力 | 12 页 | 474.37 KB | 1 年前3
Laravel 5.6 中文文档都可以用来设置系统 PATH,不同之处在于前者是给系统超级用户使用,后者是给普通登录用户使 用的,此外要让 ~/.bash_profile 修改后生效,有两种方法,一种是退出系统重新登录,一种是使用 source ~/.bash_profile 命令。 Windows 在系统的任意位置创建一个批处理文件 homestead.bat: @echo off set cwd=%cd% set 还提供了一个全局的辅助函数 old(),如果你是在 Blade 模板中显示上次输入数据,使用辅助函数 old() 更方便,如果给定参数没有对应输 入,返回 null: Cookie 从请求中取出 Cookie 为了安全起见,Laravel 框架创建的所有 Cookie ponse', function () { return response('Hello World', 200) ->header('Content-Type', 'text/plain'); }); 添加响应头 大部分响应方法都可以以方法链的形式调用,从而可以流式构建响应(流接口模式)。例如,在发送响应给用户前可以使用 header 方法来添加一系 列响应头:0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.1 中文文档等同于数据库中的 VARCHAR 列 . $table->string('name', 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); } 现在,当你更新 Comment 时,所属模型 Post 将也会更新其 updated_at 值: $comment = App\Comment::find(1); $comment->text = 'Edit to this comment!'; $comment->save(); 集合 1、简介 Eloquent 返回的所有多结果集都是 Illuminate\Datab App\User::find(1); if ($user->is_admin) { // } 4.1 数组转换 array 类型转换在处理被存储为序列化 JSON 的字段是特别有用,例如,如果数据库有一个 TEXT 字段类型包含了序列化 JSON,添加 array 类型转换到该属性将会在 Eloquent 模型 中访问其值时自动将其反序列化为 PHP 数组:0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档legacy-database 驱动。 如果你想要使用新的驱动,还需要添加 user_id (nullable integer)、ip_address (nullable string) 以及 user_agent (text) 列到存放 Session 的数据表中。 Stringy 框架不再内置 Stringy 库,如果要在应用中使用,你需要通过 Composer 手动安装。 验证 ValidatesRequests 等同于数据库中的 VARCHAR 列 . $table->string('name', 100); 等同于数据库中的 VARCHAR,带一个长度 $table->text('description'); 等同于数据库中的 TEXT 类型 $table->time('sunrise'); 等同于数据库中的 TIME 类型 $table->tinyInteger('numbers'); string body - text 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 131 comments id - integer post_id - integer body - text likes id0 码力 | 377 页 | 4.56 MB | 1 年前3
共 17 条
- 1
- 2













