Learning Laravel105 Chapter 30: Helpers 107 Introduction 107 Examples 107 Array methods 107 String methods 107 Path mehods 107 Urls 108 Chapter 31: HTML and Form Builder 109 Examples 109 Installation 109 Chapter Introduction 179 Examples 179 Setup Token on Header 179 Set token on tag 179 Check session storage path & permission 179 Use _token field on Ajax 180 Chapter 62: use fields aliases in Eloquent 181 Chapter variable of PHP 2. Get path to www and type command: 3. composer create-project --prefer-dist laravel/laravel projectname To install a specific Laravel version, get path to www and type command:0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.6 中文文档laravel/homestead ~/Downloads/virtualbox.box 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your private key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" vagrant up 启动 Homestead 虚拟机,在 Mac/Linux 系统中,可以添加 Bash 函数到 ~/.bash_profile; 在 Windows 系统上,需要添加“批处理”文件到 PATH。这些脚本允许你在系统的任意位置运行 Vagrant 命令,并且把命令执行位置指向 Homestead 的安装路径。 Mac/Linux function homestead() { Laravel 中文学习资源:http://laravelacademy.org 16 补充知识点:/etc/profile 和 ~/.bash_profile 都可以用来设置系统 PATH,不同之处在于前者是给系统超级用户使用,后者是给普通登录用户使 用的,此外要让 ~/.bash_profile 修改后生效,有两种方法,一种是退出系统重新登录,一种是使用 source ~/.bash_profile0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档Response */ public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); return $path; } 更多细节请查看其完整文档。 Webpack & Laravel Elixir Laravel Elixir frontControllerPath 方法 frontControllerPath 方法会返回前端控制器的完整路径,通常是 index.php: /** * Get the fully resolved path to the application's front controller. * * @param string $sitePath * @param string $siteName tion\Request 类, 下面演示了该类提供的一些有用方法: 获取请求路径 path 方法将会返回请求的路径信息,因此,如果进入的请求路径是 http://domain.com/foo/bar, 则 path 方法将会返回 foo/bar: $uri=$request->path(); is 方法允许你验证进入的请求是否与给定模式匹配。使用该方法时可以使用 * 通配符:0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 6.0 中文文档Composer 安装 Laravel 安装器: composer global require laravel/installer 确保 Composer 的全局 vendor bin 目录包含在系统 $PATH 路径 中,以便系统可以找到 laravel 可执行命令。在不同的操作系统中, 这个目录的位置也有所不同,常见的几种操作系列存放位置罗列如 下: macOS 和 GNU/Linux : 注:如果下载速度太慢,你还可以从这里下载相应版本的 Homestead 盒子:Laravel 学院提供的相关资源下载。 运行上述命令有可能报错: Check your Homestead.yaml file, the path to your priva te key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" up 启动 Homestead 虚拟机,在 Mac/Linux 系统中,可以添加 Bash 函数 到 ~/.bash_profile;在 Windows 系统上,需要添加「批处理」 文件到 PATH。这些脚本允许你在系统的任意位置运行 Vagrant 命 令,并且把命令执行位置指向 Homestead 的安装路径。 Mac/Linux function homestead() { (0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.0 Documentation
The Illuminate\Auth\UserInterface also received the three new methods described in the "Upgrade Path". To upgrade your application to Laravel 4.1, change your laravel/framework version to 4.1.* aliases back to the arrays. Add the new app/config/remote.php file from the repository. Upgrade Path Package Maintainers Upgrading To 4.1 From 4.0 Upgrading Your Composer Dependency Replacing Files others will jump to fix it. Creating a bug 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 for0 码力 | 242 页 | 1.44 MB | 1 年前3
Laravel 5.1 中文文档安装 Laravel 安装器: composer global require "laravel/installer=~1.1" 确保~/.composer/vendor/bin 在系统路径 PATH 中,否则不能调用 laravel 命令。 安装完成后,通过简单的 laravel new 命令将会在当前目录下创建一个新的 Laravel 应用, 例如,laravel new blog 将会创建一个名为 n\Request 类,这里列 出了一些该类中的有用方法: 1.1.1 获取请求 URI path方法将会返回请求的URI,因此,如果进入的请求路径是 http://domain.com/foo/bar, 则 path 方法将会返回 foo/bar: $uri=$request->path(); is 方法允许你验证进入的请求是否与给定模式匹配。使用该方法时可以使用*通配符: 本文档由 'value'); withCookie 方法接收额外的可选参数从而允许对 cookie 属性更多的自定义: ->withCookie($name, $value, $minutes, $path, $domain, $secure, $httpOnly) 默认情况下,Laravel 框架生成的 cookies 经过加密和签名,所以在客户端不能进行修改, 如果你想要将特定的 cookies0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源 46 path 方法将会返回请求的 URI,因此,如果进入的请求路径 是 http://domain.com/foo/bar,则 path 方法将会返回 foo/bar: $uri=$request->path(); is 方法允许你验证进入的请求是否与给定模式匹配。使用该方法时可以使用 * 通配符: Laravel 中文学习资源 52 cookie 方法接收额外的可选参数从而允许对 Cookie 属性进行更多的自定义: ->cookie($name, $value, $minutes, $path, $domain, $secure, $httpOnly) 默认情况下,Laravel 框架生成的 Cookie 经过了加密和签名,以免在客户端被篡改。如 果你想要让特定的 Cookie 子集在生成时取消加密,可以使用中间 make:migration create_users_table --create=users 如果你想要指定生成迁移的自定义输出路径,在执行 make:migration 命令时可以使用-- path 选项,提供的路径应该是相对于应用根目录的。 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 Laravel 中文学习资源0 码力 | 377 页 | 4.56 MB | 1 年前3
Laravel 3.2 Documentationschema. Added "forelse" to Blade. Added View::render_each. Able to specify full path to view (path: ). Added support for Blade template inheritance. Added "before" and "after" validation // }); Catching the remaining URI without limitations: Route::get('files/(:all)', function($path) { // }); Allowing a URI segment to be optional: Route::get('page/(:any?)', function($page download response: return Response::download('file/path.jpg'); Sending a file download and assigning a file name: return Response::download('file/path.jpg', 'photo.jpg'); Errors To generating proper0 码力 | 139 页 | 1.13 MB | 1 年前3
《Slides Dev Web》 03. Laravel
projet $ composer create-project laravel/laravel raidit # ou si ~/.composer/vendor/bin est dans le PATH : $ laravel new raidit $ cd raidit • Racine du site dans /public (lien symbolique ou virtual host)0 码力 | 8 页 | 224.34 KB | 1 年前3
共 9 条
- 1













