webtexx

My daily work on www

Dieses Blog durchsuchen

Freitag, 14. Oktober 2016

laravel 5: json response with

In Laravell 5 PS7 support is missing. So it is a little bit tricky to return a json response with a statuscode and a content type.

Here is a simple controller which does the trick

Eingestellt von Unknown um 14:45
Diesen Post per E-Mail versendenBlogThis!Auf X teilenIn Facebook freigebenAuf Pinterest teilen

Keine Kommentare:

Kommentar veröffentlichen

Neuerer Post Älterer Post Startseite
Abonnieren Kommentare zum Post (Atom)

Blog-Archiv

  • ▼  2016 (92)
    • ▼  Oktober (12)
      • php: calling protected methods without inheritance
      • laravel 5: create professional api with automatic ...
      • apache: enable cors in htaccess
      • git: add / delete / modify a file on your last com...
      • git: protect you from history overrides and histor...
      • git: let git learn how to solve conflicts automati...
      • git: add a commited file to .gitignore
      • laravel 5: json response with
      • git: add p4merge as diff and mergetool to console
      • git: add a custom shortcut for long commands
      • git: add notepadd++ as default editor
      • nginx: tuning nginx and meter performance
    • ►  September (19)
    • ►  August (36)
    • ►  Juli (16)
    • ►  Mai (2)
    • ►  April (2)
    • ►  Februar (3)
    • ►  Januar (2)
  • ►  2015 (8)
    • ►  Dezember (1)
    • ►  November (7)
Designbilder von borchee. Powered by Blogger.

Über mich

Unknown
Mein Profil vollständig anzeigen