您好,欢迎光临本网站![请登录][注册会员]  
文件名称: Easy Laravel5 A Hands On Introduction Usinga Real-World Project
  所属分类: PHP
  开发工具:
  文件大小: 8mb
  下载次数: 0
  上传时间: 2018-05-30
  提 供 者: sinat_4*******
 详细说明: Chapter1.IntroducingLaravel In this opening chapter you’ll learn how to create and configure your Laravel project using your existing PHP development environment, a virtual machine known as Laravel Homestead, and a minimal development environment known as Valet (OSX users only). I’ll also show you how to configure your environment in order to effectively debug your Laravel applications, and how to extend Laravel’s capabilities by installing several popular third-party packages. We’ll conclude the chapter with an introduction to PHPUnit, showing you how to create and execute your first automated Laravel test! Chapter2.ManagingYourProjectControllers,Layout,Views,and OtherAssets Inthischapteryou’lllearnhowtocreatecontrollersandactions,anddefinetheroutesusedtoaccess yourapplicationendpoints.You’llalsolearnhowtocreatethepages(views),workwithvariabledata andlogicusingtheBladetemplatingengine,andreduceredundancyusinglayoutsandviewhelpers. I’ll also introduce Laravel Elixir, a new feature for automating otherwise laborious tasks such as JavaScript transpiling and CSS minification. You’ll also learn how to integrate several popular CSS frameworks,includingBootstrap3and4,andTailwind,andhowtouseLaravelDuskforintegration testing. Chapter3.TalkingtotheDatabase In this chapter we’ll turn our attention to the project’s data. You’ll learn how to integrate and configure the database, manage your database schema using migrations, and easily populate your database using seeds. From there we’ll move on to creating models, and how to query the database through these models using the Eloquent object relational mapper. I’ll also introduce the concept of resourceful controllers, and we’ll generate a controller which will be used to view and manage the example project’s events.You’ll also learn howhow to use Laravel’s Query Builder to query the database when Eloquent isn’t possible or practical. Chapter4.CustomizingYourModels Laravel models are incredibly powerful tools, and can be customized in a variety of ways to meet your project’s specific needs. In this chapter you’ll learn how to override model defaults to create custom accessors and mutators, add instance methods, and use scopes to easily filter database results with minimal code redundancy. You’ll also learn how to create sluggable URLs using the eloquent-sluggable package. The chapter concludes with an introduction to testing your models using Laravel’s amazing database-specific test features. Introduction 4 Chapter5.Creating,Updating,andDeletingData Chapters3and4wereprimarilyfocuseduponthemanydifferentwaysyoucanquerythedatabase. In this chapter we’ll turn our attention to creating, updating, and deleting data. In addition to a reviewoftheEloquentsyntaxusedtoperformthesetasks,we’llcontinuebuildingouttheresourceful controller created in chapter 3. You’ll also learn how to incorporate flash notifications into your controllers and views to keep users updated regarding request outcomes, and how to use Laravel Dusk to test your forms. Chapter6.ValidatingUserInput For reasons of simplicity, chapter 5 focused exclusively on what it must be like to live in a world in whicherrorproneormalicioususersdidn’texist.ThatistosayImomentarilypuntedonthematter of user input validation. But data validation is so crucial to successful web application development that it can be put off no longer, and so this chapter is devoted entirely to the topic. In this chapter you’ll learn all about Laravel’s native validators, and how to incorporate form requests into your project to add form validation while ensuring your controller code remains lean. Chapter7.CreatingandManagingModelRelationships Building and navigating table relations is a standard part of the development process even when working on the most unambitious of projects, yet this task is often painful when working with many web frameworks. Fortunately, using Laravel it’s easy to define and traverse these relations. In this chapter I’ll show you how to define, manage, and interact with one-to-one, one-to-many, many-to-many, has many through, and polymorphic relations. Chapter8.SendingE-mails Whether for requiring newly registered users to confirm their e-mail address, or notifying event attendees of scheduling changes, web applications such as HackerPair rely heavily on using e-mail asanefficientmeansofcommunication.Inthischapteryou’lllearnaboutLaravel’s Mailable class, a fantastic solution for generating e-mails within your application. You’ll also learn how to test email generation and delivery in a sane fashion. Just for added measure, I’ll walk you through the steps I took to incorporate a contact form into HackerPair, which when submitted, sends inquiring users’ messages and contact details to a support address. Chapter9.AuthenticatingandManagingYourUsers Most modern applications offer user registration and preference management features in order to provide customized, persisted content and settings. In this chapter you’ll learn how to integrate userregistration,login,andaccountmanagementcapabilitiesintoyourLaravelapplication.I’llalso showyouhowtoaddsocialauthenticationtoyourapplication,allowinguserstoauthenticateusing a variety of popular OAuth providers such as Twitter, Facebook, and GitHub. Introduction 5 Chapter10.CreatinganAdministrationConsole Most web applications incorporate a restricted administration console accessible by the project developers and support team. In this chapter I’ll show you an easy solution for designating certain usersasadministrators,andhowtograntaccesstoarestrictedconsoleusingprefixedroutegrouping and custom middleware. Chapter11.IntroducingVue.js Vue.js¹ has become the Laravel community’s de facto JavaScript library, and for good reason; it shares many of the practical, productive attributes Laravel developers have come to love. Chapter 13 introduces Vue.js’ fundamental features, and shows you how to integrate highly interactive and eye-appealing interfaces into your Laravel application. Chapter12.CreatinganApplicationAPI These days a web interface is often only one of several available vehicles for interacting with the underlying data. Popular services such as GitHub, Amazon, and Google also offer an API (ApplicationProgrammingInterface)whichallowsenterprisingdeveloperstodreamupandimplementnew waystoview,mine,andupdatethesecompanies’vastdatastores.Inthischapteryou’lllearnhowto createyourownAPI,andprovideregistereduserswithanAPIkeywhichthey’llusetoauthenticate when interacting with the API. ...展开收缩
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 相关搜索: php laravel 实战
 输入关键字,在本站1000多万海量源码库中尽情搜索: