Laravel 3.2 Documentation.......................................................................................... 74 Calling Controllers From Tests ......................................................................... controller is registered, you may access its methods using a simple URI convention: http://localhost/controller/method/arguments This convention is similar to that employed by CodeIgniter and other popular frameworks as arguments. If no method segment is present, the "index" method will be used. This routing convention may not be desirable for every situation, so you may also explicitly route URIs to controller0 码力 | 139 页 | 1.13 MB | 1 年前3
Learning LaravelDirectory Structure 68 Examples 68 Change default app directory 68 Override Application class 68 Calling the new class 68 Composer 69 Change the Controllers directory 69 Chapter 21: Eloquent 70 Introduction create method 157 Using factory 158 Seeding && deleting old data and reseting auto-increment 158 Calling other seeders 158 Creating a Seeder 158 Safe reseeding 159 Chapter 55: Services 161 Examples output the $name variable. To pass this value to our view, we would pass an array of values when calling the view helper: https://riptutorial.com/ 17 view('example', ['name' => $name]); or alternatively0 码力 | 216 页 | 1.58 MB | 1 年前3
Laravel 5.0 Documentation
Blade xxi. Unit Testing i. Introduction ii. Defining & Running Tests iii. Test Environment iv. Calling Routes From Tests v. Mocking Facades vi. Framework Assertions vii. Helper Methods viii. Refreshing Configuration iii. Usage iv. Pipelining 8. Artisan CLI i. Overview i. Introduction ii. Usage iii. Calling Commands Outside Of CLI iv. Scheduling Artisan Commands ii. Development i. Introduction ii. Building name as its first argument, and a Closure as its second. The macro's Closure will be executed when calling the macro name from a ResponseFactory implementation or the response helper: return response()->caps('foo');0 码力 | 242 页 | 1.44 MB | 1 年前3
The Laravel Handbook
which we do not mention, but it’s the dogs table we created beforehand because of the naming convention dogs table → Dog model. We’re going to use this model to add an entry to the database. 28 uses the Dog model to find a dog with a specific id, which is passed by the form, and deletes it calling the delete() method. Here is how it looks: 51 11. Adding authentication using Laravel Breeze0 码力 | 111 页 | 14.25 MB | 1 年前3
《Slides Dev Web》02. Introduction aux frameworks PHP
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 app7 - fr8 Pretty ( | smart | clean0 码力 | 24 页 | 1.03 MB | 1 年前3
共 5 条
- 1













