Leanpub Header

Skip to main content

Laravel 5 in pratica

Una guida semplice per realizzare applicazioni di qualità

Una guida semplice per realizzare applicazioni di qualità con uno dei più popolari framework PHP. 

Minimum price

$13.90

$15.90

You pay

$15.90

Author earns

$12.72
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
About

About

About the Book

** Novità! Pubblicato "Laravel in profondità", per approfondire uno dei più popolari Framework PHP.

Una guida pratica su Laravel 5: codice e solo codice. In tutti i capitoli c'è codice da scrivere e testare. Il testo è stato scritto con l'obiettivo di utilizzare subito in produzione Laravel: a casa, in ufficio, per progetti personali. 

La versione presa in considerazione è la  5.1 perchè è  LTS (Long Term Support): saranno, cioè garantiti fix dei bug per due anni, e bug di sicurezza per tre anni. Un grande incentivo per le aziende (o freelancer) che vogliono adottare questo fiammeggiante framework per le loro applicazioni.

Le versioni successive di Laravel? 

Niente paura! Non saranno certo tralasciate le novità di Laravel 5.2, 5.3 , 5.4, 5.5 e 5.6: in appendice troveranno il loro spazio.

VIDEO E RISORSE: l'area LAB di Laravel 5 in Pratica

Il libro ha anche un'area lab con video, screencast e risorse sul mondo Laravel.

Iscriviti (è gratis) all'area lab e dai un'occhiata ai video presenti. Non è necessario acquistare il libro per entrare nell'area lab ;)

Testimonianze

Un punto di riferimento pratico. Punto (Luca, Verona)

Probabilmente il testo più completo in italiano su Laravel (Antonio, Caltanissetta)

Ok, chiaro. Lo sto già usando in produzione. Thanks (Ettore, Bologna)

Finalmente al sodo. Grazie (Marco, Pisa)

Ho letto il libro su Laravel 4 e devo dire che non ti ripeti: bravo :) (Giuseppe, Catania)

Argomenti essenziali per entrare subito in produzione. Forza! (Pietro, Ancona)

Posso urlare? (Giuseppe, Catanzaro)

Share this book

Categories

Author

About the Author

Francesco Lettera

Appassionato sviluppatore di PHP. Dai fasti di Codeigniter è passato a Laravel con grande gioia. Lavora da tempo immemore in una importante agenzia di comunicazione e le sue passioni segrete sono JavaScript e Python.

Contents

Table of Contents

Premessa

Perché Laravel?

A chi è rivolto questo libro

Conoscenze richieste

Download codice di esempio

In profondità

Video di approfondimento

Laravel’s Resources Book

Feedback

Per Iniziare

  1. Precisazioni
  2. Installazione
  3. Perché specifico la versione?
  4. Rimuovere la cartella PUBLIC
  5. Cartelle?

Autenticazione bella e pronta

  1. Autenticazione nella versione 5.2
  2. Migration
  3. Cos’è .env?
  4. Registrazione, login e logout

Blade, un template chiaro e snello

  1. Strutture di controllo
  2. IF e altre istruzioni
  3. Loop

Scarichiamo pacchetti per un Form di lusso

  1. Un nuovo inizio
  2. Installa e reinstalla

Adoro gli address book

  1. Database, onnipresente
  2. Controller dell’address book: i metodi principali
  3. Hai scaricato il pacchetto per il Form?
  4. Store, immagazzinare i dati nel db
  5. Dove sono le regole di validazione?
  6. Il nostro elenco dati aggiornato
  7. Modificare non guasta
  8. Cosa sono i Flash messages
  9. Cancellare è, a volte, opportuno
  10. Prova a cambiare questo attributo

Refactoring a piccole dosi

  1. Single Responsibility cosa?
  2. Download dell’applicazione

Eloquent, Factory, Faker e impostori vari

  1. Pigro?
  2. Model Factories per riempire a sbafo
  3. Faker, model e Seeder
  4. Faker, dove?

Eloquent: un soffice inizio

  1. Relazione uno a molti
  2. Uno a molti: operazione inversa
  3. La parola chiave use
  4. Uno a molti nella vita reale
  5. Uno a molti: esercizio
  6. Download dell’applicazione

Eloquent: relazioni a triangolo

  1. Prestiamo libri
  2. Ebook in prestito a chi?
  3. Download dell’applicazione

Eloquent: relazioni complesse

  1. Le polimorfiche
  2. Gli ID, quali?
  3. Abbattere le query: Eager Loading
  4. Eager Loading, Lazy Eager Loading…
  5. Download dell’applicazione

Middleware, il tuo cane da guardia

  1. Il setup
  2. La route e il Model
  3. Middleware e request, Middleware e parametri
  4. Download dell’applicazione

Paginare è la miglior cosa

  1. Seeding dei dati
  2. Simple pagination
  3. Paginare con Eloquent
  4. Paginazione personalizzata
  5. Download dell’applicazione

Caching, non solo quando hai poche risorse

  1. Dove si configura
  2. Salvare dati in cache
  3. Recuperare i dati in cache
  4. Aggiornare i dati
  5. La cache è per sempre
  6. Cancellare la cache
  7. Download dell’applicazione

Le mie classi, i miei Helper: tutto mio

  1. Classi: dove e come
  2. Helper: dove e come
  3. Download dell’applicazione

Service Provider, un pacchetto cotto e mangiato

  1. La nostra classe
  2. Il nostro ServiceProvider
  3. E i metodi “statici”
  4. Precisazioni
  5. Download dell’applicazione

View composer: evitare ridondanze

  1. Immancabile template bootstrap
  2. La tabella
  3. Variabile
  4. Conclusioni
  5. Download dell’applicazione

Laravel e il repository pattern

  1. Prepariamo la tabella da interrogare
  2. Model e Controller
  3. Dove creare cosa?
  4. Interfaccia
  5. Conclusioni
  6. Download dell’applicazione

Laravel e il decorator pattern

  1. Scenario
  2. Implementazione
  3. Conclusioni

Appendice A - Laravel 5.2, le novità in breve

Appendice B - Autenticazione in Laravel 5.2

  1. Autorizzazione in Laravel 5.2

Appendice C - Trucchi, scorciatoie, misteri e suggerimenti

Appendice D - Laravel 5.3, le novità in breve

  1. Suggerimenti per l’upgrade da 5.2 a 5.3

Appendice E - Laravel 5.4, le novità in breve

Appendice F - Localizzazione con Laravel 5.4

  1. Cambia lingua nella tua app

Appendice G - Laravel 5.5, le novità in breve

  1. La versione 5.5.23

Appendice H - Laravel 5.6, le novità in breve

Appendice I - Laravel 5.7, le novità in breve

Get the free sample chapters

Click the buttons to get the free sample in PDF or EPUB, or read the sample online here

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $14 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub