Learning LaravelMutator 86 Chapter 24: Eloquent: Model 87 Examples 87 Making a Model 87 Model creation 87 Model File Location 88 Model configuration 89 Update an existing model 90 Chapter 25: Error Handling 91 Remarks Files when uploading with Laravel on Windows 136 Parameters 136 Examples 136 Generating timestamped file names for files uploaded by users. 136 Chapter 44: Observer 138 Examples 138 Creating an observer Pagination 140 Examples 140 Pagination in Laravel 140 Changing pagination views 141 Chapter 46: Permissions for storage 142 Introduction 142 Examples 142 Example 142 Chapter 47: Policies 143 Examples0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Package Development i. Introduction ii. Views iii. Translations iv. Configuration v. Publishing File Groups vi. Routing xvii. Pagination i. Configuration ii. Usage iii. Appending To Pagination Links are all classes related to the HTTP transport layer of your application. Instead of a single, flat file of route filters, all middleware are now broken into their own class files. A new app/Providers Rackspace cloud storage - all with one, unified and elegant API! Storing a file in Amazon S3 is now as simple as: Storage::put('file.txt', 'contents'); For more information on the Laravel Flysystem integration0 码力 | 242 页 | 1.44 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
BDD • Tests • Génération, validation et traitement de formulaires • Authenfication, Sessions, Permissions, Roles, ACL • Pagination • I18n • Génération de code • Mail • Connecteurs aux webservices 7https://12factor0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 6.0 中文文档注:如果下载速度太慢,你还可以从这里下载相应版本的 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 $uri * @return string|false */ public function isStaticFile($sitePath, $siteName, $u ri) { if (file_exists($staticFilePath = $sitePath.'/publ ic/'.$uri)) { 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun 服务容器绑定 DB(实例) Illuminate\Database\Connection db.connection Event Illuminate\Events\Dispatcher events File Illuminate\Filesystem\Filesystem files Gate Illuminate\Contracts\Auth\Access\Gate Hash Illumina0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 3.2 Documentation.......................... 66 File Uploads................................................................................................................. 66 File Extensions ..................... ................................................................................... 67 Checking File Types ........................................................................................... Has_Many and Has_One relationships. Improved View performance by only loading contents from file once. Fix handling of URLs beginning with hashes in URL::to . Fix the resolution of unset0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
for macOS, Linux and Windows. Open the newly created project folder in VS Code. This should be the file structure: 8 While you’re here I recommend you install the extensions Laravel Extra Intellisense going to look at is the .env file. It contains a lot of configuration options, called environment variables, for your app: 9 For example in this portion of the file you can see we set the app name config/app.php file: 10 Each file in the folder contain a lot of configuration options you can set, very well documented. What’s the difference between config files and the .env file? Environment0 码力 | 111 页 | 14.25 MB | 1 年前3
Laravel 5.6 中文文档vagrant box add 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 返回磁盘上的完整路径,如果输入请求不 是请求静态文件,则返回 false: /** * Determine if the incoming request is for a static file. * * @param string $sitePath * @param string $siteName * @param string $uri * @return @return string|false */ public function isStaticFile($sitePath, $siteName, $uri) { if (file_exists($staticFilePath = $sitePath.'/public/'.$uri)) { return $staticFilePath; } return0 码力 | 377 页 | 14.56 MB | 1 年前3
Laravel 5.3 中文文档* @return Response */ public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); return $path; } 更多细节请查看其完整文档。 Webpack & Laravel 该方法会返回磁盘上的完整路径,如果输入请求不是请求静态文件,则返回 false: /** * Determine if the incoming request is for a static file. * * @param string $sitePath 本文档由 Laravel 学院(LaravelAcademy.org)提供 Laravel 学院致力于提供优质 @return string|false */ public function isStaticFile($sitePath, $siteName, $uri) { if (file_exists($staticFilePath = $sitePath.'/public/'.$uri)) { return $staticFilePath; }0 码力 | 691 页 | 9.37 MB | 1 年前3
Laravel 5.1 中文文档Illuminate\Http\Request 实例的 file 方法来访问上传文件,该方法返回的对象 是 Symfony\Component\HttpFoundation\File\UploadedFile 类的一个实例,该类继承自 PHP 标准库中提供与文件交互方法的 SplFileInfo 类: $file = $request->file('photo'); 2.3.2 验证文件是否存在 ($request->file('photo')->isValid()){ // } 2.3.4 保存上传的文件 使用 move 方法将上传文件保存到新的路径,该方法将上传文件从临时目录(在 PHP 配置文 件中配置)移动到指定新目录: $request->file('photo')->move($destinationPath); $request->file('photo' Illuminate\Contracts\Filesystem\Cloud Illuminate\Contracts\Filesystem\Factory File Illuminate\Contracts\Filesystem\Filesystem File Illuminate\Contracts\Foundation\Application App Illuminate\Contracts\Hashing\Hasher0 码力 | 307 页 | 3.46 MB | 1 年前3
Laravel 5.2 中文文档Illuminate\Http\Request 实例的 file 方法来访问上传文件,该方法返回的对象 是 Symfony\Component\HttpFoundation\File\UploadedFile 类的一个实例,该类继承自 PHP 标准库中提供与文件交互方法的 SplFileInfo 类: $file = $request->file('photo'); 验证文件是否存在使用 hasFile ($request->file('photo')->isValid()){ // } 保存上传的文件 使用 move 方法将上传文件保存到新的路径,该方法将上传文件从临时目录(在 PHP 配 置文件中配置)移动到指定新目录: $request->file('photo')->move($destinationPath); $request->file('photo')- 尽管被包含的视图继承所有父视图中的数据,你还可以传递额外参数到被包含的视图: @include('view.name', ['some' => 'data']) 注:不要在 Blade 视图中使用 __DIR__ 和 __FILE__ 常量,因为它们会指向缓存视图的路 径。 为集合渲染视图 你可以使用 Blade 的 @each 指令通过一行代码循环引入多个局部视图: @each('view.name', $jobs0 码力 | 377 页 | 4.56 MB | 1 年前3
共 10 条
- 1













