The Laravel Handbook
to Laravel 4 Laravel is one of those legendary frameworks that everyone using it loves. To me, it’s in the same level of Rails and Django. If you know/prefer Ruby you use Rails. If you know/prefer Python Remix appear very primitive in some aspects, while in some other aspects they seem more modern. It’s just a different tool. And I think as Web Developers we must know in which scenario one tool is more folder is config . Here’s for example the 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 config0 码力 | 111 页 | 14.25 MB | 1 年前3
Learning LaravelCustom Filesystems 97 Creating symbolic link in a web server using SSH 98 Chapter 28: Form Request(s) 99 Introduction 99 Syntax 99 Remarks 99 Examples 99 Creating Requests 99 Using Form Request 99 blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: laravel new blog Read Getting started with Laravel online: https://riptutorial typically defined in the boot method of AuthServiceProvider and succinctly named to reflect what it's doing. An example of a gate that allows only premium users to view some content will look like this:0 码力 | 216 页 | 1.58 MB | 1 年前3
《Slides Dev Web》 01. Cours devweb
Webservices : REST vs SOAP • Sécurité : Technologies, prévention des risques courants • (Responsive) Web Design • (Syndication : RSS, Atom) • Vos souhaits ? Contenu, activités • Cours théorique • 2 Projets dans l’entité HE-Arc9 – S’inscrire10 Choix des projets • Contrainte : appli basée sur des données • Choix – Besoin réel – Données existantes : dbpedia11, opendata12, … – S’inspirer de l’existant : Lq7AQ4qPWNkY_JqMTTPMPLM- I1%40thread.tacv2/conversations?groupId=cadc33cc-9fc8-49d7-b951-aa26d534e15f&tenantId=5b3b7d7d-e119- 4d05-9022-f775f2e48e96 8https://github.com/settings/keys 9https://github.com/HE-Arc/0 码力 | 7 页 | 129.56 KB | 1 年前3
Laravel 6.0 中文文档the path to your priva te key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" eval "$(ssh-agent -s)" ssh-add -K ~/.ssh/id_rsa 再次运行上述命令即可添加成功: 安装 Homestead 你可以通过克隆仓库代码来实现 Mailhog 后,你可以通过 http://localhost:8025 访问 Mailhog 后台管理页面。 配置 Minio Minio 是一个开源的对象存储服务器,并且提供了与 Amazon S3 兼 容的 API,要安装 Minio,需要更新 Homestead.yaml, 在 features 配置项中启用它: minio: true 默认情况下,Minio 可以通过 9600 端口访问,在浏览器中访 区域。 为了使用 Minio,你需要在配置文件 config/filesystems.php 中 调整 S3 磁盘配置,添加 use_path_style_endpoint 配置项 到 s3 配置项,并将 url 键修改为 endpoint: 's3' => [ 'driver' => 's3', 'key' => env('AWS_ACCESS_KEY_ID'), 'secret' =>0 码力 | 1442 页 | 14.66 MB | 1 年前3
Laravel 5.6 中文文档public function __construct() { // } /** * Authenticate the user's access to the channel. * * @param \App\User $user * @param \App\Order $order path to your private key does not exist. 解决办法如下: ssh-keygen -t rsa -b 4096 -C "your_email@example.com" eval "$(ssh-agent -s)" ssh-add -K ~/.ssh/id_rsa 再次运行上述命令即可添加成功: 安装 Homestead 你可以通过克隆仓库代码来实现 frontControllerPath 方法会返回前端控制器的完整路径,通常是 index.php: /** * Get the fully resolved path to the application's front controller. * * @param string $sitePath * @param string $siteName * @param string0 码力 | 377 页 | 14.56 MB | 1 年前3
《Slides Dev Web》 07. jQuery
raccourci pour jQuery() • Utilisation de sélecteurs CSS, id ou classes $(document); // retourne le DOM $("h3").hide(); // cache tous les éléments h3 $(".post"); // sélectionne les éléments de classe "post" noeud • Pour être sûr que le document est chargé : $(document).ready(function(){ console.log("prêt!") }); ou $(function() { console.log("prêt!") }); Sélection dans le DOM • Sélection $("h1"); // Tous les fils (sélecteur descendant) $("#intro li"); • Que les fils directs (sélecteur d’enfants) 2 $("#intro > li"); • Sélecteur multiple $(".post, #main "); • D’autres exemples2 de sélecteurs Parcours0 码力 | 5 页 | 49.45 KB | 1 年前3
《Slides Dev Web》 09. Services Web
Service web • 2 visions : – Utiliser les technos web pour développer des applis distribuées – Accès pour une application aux services offerts aux humains • Service web = webapp pour une autre application WSDL/UDDI w3schools11 REST : REpresentational State Transfer • Style d’architecture sur lequel a été bâti le web • Architecture Orientée Ressource (ROA) • Chapitre 5 de la thèse12 de Roy T. Fielding13 (fr14) autodescriptifs – Hypermédia comme moteur de l’état de l’application • Ressource : information ou moyen d’accès – ex. : météo du jour, adresse ajout d’un article à un blog, … • Représentation : forme donnée à la0 码力 | 6 页 | 47.90 KB | 1 年前3
Laravel 5.3 中文文档public function update(Request $request) { $path = $request->file('avatar')->store('avatars', 's3'); return $path; } 更多细节请查看其完整文档。 Webpack & Laravel Elixir Laravel Elixir 6.0 和 Laravel frontControllerPath 方法会返回前端控制器的完整路径,通常是 index.php: /** * Get the fully resolved path to the application's front controller. * * @param string $sitePath * @param string $siteName * @param string class) ->needs(Filesystem::class) ->give(function () { return Storage::disk('s3'); }); 标签 少数情况下,我们需要解析特定分类下的所有绑定,例如,你正在构建一个接收多个不 同 Report 接口实现的报告聚合器,在注册完 Report 实现之后,可以通过0 码力 | 691 页 | 9.37 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
Framework1 • Fonctionnalités similaires pour de nombreuses applis • Composants de haut-niveau réutilisables (faible couplage) • Règles de codage et d’architecture • Code sûr et efficace • Facilite les les tests et la gestion de projets complexes • Utilisation de Design Patterns dès que possible • Comportement par défaut • Extensible • Principe d’inversion de contrôle Différences entre framework et library 4 1 Design Patterns et webdev • Inversion de contrôle (IoC4) • Model View Controller – M : Accès aux données, logique métier – V : Templates des pages à générer – C : Orchestration, transfert des infos0 码力 | 24 页 | 1.03 MB | 1 年前3
Laravel 5.2 中文文档实际上,默认的 Laravel 5.2 应用结构采用的正是这个方法。例如,在默认 的 App\Http\Kernel.php 文件中你会看到如下内容: /** * The application's route middleware groups. * * @var array */ protected $middlewareGroups = [ 'web' => 当处理多对多关联的时候,save 方法以数组形式接收额外的中间表属性作为第二个参数: App\User::find(1)->roles()->save($role, ['expires' => $expire s]); create 方法 除了 save 和 saveMany 方法外,还可以使用 create 方法,该方法接收属性数组、创建模 型、然后插入数据库。save 和 create 的不同之处在于 $user = App\User::find(1); return $user->disabled_at->getTimestamp(); 默认情况下,时间戳的格式是“Y-m-d H:i:s”,如果你需要自定义时间戳格式,在模型中设 置$dateFormat 属性,该属性决定日期属性存储在数据库以及序列化为数组或 JSON 时的 格式:0 码力 | 377 页 | 4.56 MB | 1 年前3
共 21 条
- 1
- 2
- 3













