Laravel 3.2 Documentationautoloader configuration and from loading unnecessary components when they won't be used. Want to use a library or model? Don't bother loading it, just use it. Laravel will handle the rest. View Composers important part of Laravel. Laravel itself sports hundreds of tests to help ensure that new changes don't unexpectedly break anything. This is one of the reasons why Laravel is widely considered to have some important to note that just because Laravel can handle these things automatically doesn't mean that you can't call and configure these systems manually if you prefer. These are just a few ways in which0 码力 | 139 页 | 1.13 MB | 1 年前3
The Laravel Handbook
how you installed PHP on your machine. Hopefully you haven’t any and we can go on. On macOS, use Homebrew (install Homebrew first if you haven’t already) and install both PHP and Composer using brew install example locally in development you can have debug enabled, while on the production server you don’t want that. Some options in config files, like the ones you see above, make use of the env() Laravel src="https://media.tenor.com/IHdlTRsmcS4AAAAM/404.gif" /> And this will be rendered for 404 errors: You didn’t have to do anything more than creating the file, because Laravel has this set of conventions, so adding0 码力 | 111 页 | 14.25 MB | 1 年前3
Learning Laravelalready have experiences on Laravel, share your knowledge by add your own topics or examples! Just don't forget to consult our Contribution style guide on this topic remarks to know more about how to contribute $user->isSubscribedTo($content->id); }); A Gate always receives a user instance as the first argument, you don't need to pass it when using the gate, and may optionally receive additional arguments such as the eloquent Laravel User model contains two methods that help with authorisations using Policies; can and can't. These two can be used to determine if a user has authorisation or not on a model respectively. To0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
local environment. We'll discuss each piece of the migration process in further detail below. Don't forget to copy any additional Composer dependencies into your 5.0 application. This includes third-party and the Homestead virtual machine. Don't have an SSH key? On Mac and Linux, you can generally create an SSH key pair using the following command: ssh-keygen -t rsa -C "you@homestead" Installing Homestead sites automatically! To destroy the machine, you may use the vagrant destroy --force command. Don't forget to add the "domains" for your Nginx sites to the hosts file on your machine! The hosts file0 码力 | 242 页 | 1.44 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
6http://ui-patterns.com/ 2 Figure 1: MVC 3 Bonnes pratiques • Heavy Model, Light Controller • Don’t Repeat Yourself • You Ain’t Gonna Need It • Convention Over Configuration • Keep It Simple and Stupid • 12 factor mytop 6 Frameworks PHP • Lesquels connaissez-vous? • Lesquels avez-vous utilisé? • Pourquoi y en a-t-il tant? L’explication donnée par Joe Gregorio pour le langage Python9 est : « parce que c’est facile montre également une maturité de la plateforme. There are people who actually like programming. I don’t understand why they like programming. Rasmus Lerdorf 10 • PHP-FI Forms Interpreter • PHP 3, réécrit0 码力 | 24 页 | 1.03 MB | 1 年前3
《Slides Dev Web》 01. Cours devweb
12https://opendata.swiss/fr/ 2 ∗ Product Hunt13, makeuseof14, … ∗ Volées précédentes15 • Commencer tôt pour se libérer les dernières semaines de l’année Calendrier Semaine Automne Semaine Printemps 38 Présentations 49 19 Présentations 50 20 Examens 51 Présentations 21 Début TB 2 Projet Python 3 4 5 T. Autonome 6 Examen Suivi du calendrier (à jour sur teams16) Jalons pour chacun des 2 projets • Echéances dépôt • Le temps disponible à l’horaire ne suffira pas ! • Essayez de commit avec la même identité • Signalez dans le commit msg si vous n’êtes pas l’auteur • Le déploiement est long : commencez tôt ! •0 码力 | 7 页 | 129.56 KB | 1 年前3
《Slides Dev Web》 09. Services Web
plusieurs machines – Principe : Les composants/services communiquent par le réseau – Problèmes : Hétérogénéité systèmes, langages, … – Solution : Protocole générique, abstraction différences – Exemples 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), 2000 • Parmi les contraintes15, une 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 à la ressource0 码力 | 6 页 | 47.90 KB | 1 年前3
Laravel 6.0 中文文档提供的新的子查询功能,我们可以通过一个查询获 取所有的航班目的地以及最新到达这些目的地的航班名称: return Destination::addSelect(['last_flight' => Fligh t::select('name') 本文档由学院君提供 学院君致力于提供优质 Laravel 中文学习资源:https://xueyuanjun.com 10 ->whereColumn('destination_id' 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" eval "$(ssh-agent -s)" ssh-add -K ~/.ssh/id_rsa 再次运行上述命令即可添加成功: * The priority-sorted list of middleware. * * This forces non-global middleware to always be in t he given order. * * @var array */ protected $middlewarePriority = [ \Illuminate\Session\Middl0 码力 | 1442 页 | 14.66 MB | 1 年前3
《Slides Dev Web》 03. Laravel
Otwell4 • Basé sur des composants d’autres frameworks • Mai 2013 : version 4, utilise composer5 • Août 2014 : projet PHP le plus populaire6 sur github • Qui7 utilise Laravel ? • version 9 publiée 08.02.22 raidit $ cd raidit • Racine du site dans /public (lien symbolique ou virtual host) Le dépôt • Initialiser le dépôt $cd raidit $git init $git add . $git commit -m "Install laravel" $git remote add origin symbolique vers le dossier /public 6 Artisan • Laravel’s CLI • Construit avec Symfony Console • Aide aux tâches courantes, ex: $php artisan route:list $php artisan migrate $php artisan make:controller $php0 码力 | 8 页 | 224.34 KB | 1 年前3
《Slides Dev Web》 08 . RSSPrincipe de vendre un contenu à plusieurs médias • Dans les journaux : dépêches, bandes dessinées, … • Télévision : jeux, séries • Web : Flux RSS / Atom – 1 source de donnée, plusieurs abonnés – Contenu : type="application/atom+xml" href="http://www.he-arc.ch/rss-generator/atom.php" />2008-10-27T18:30:02Z David Grunenwald david.grunenwald@he-arc.ch ment%20web%20et%20mobile-V1.docxhttp://dgr.he-arc.ch/atom/1234 2008-10-27T18:30:02Z Un tout nouveau cours. 4 Générer le flux0 码力 | 7 页 | 52.98 KB | 1 年前3
共 19 条
- 1
- 2













