by core45 | Feb 12, 2016 | laravel, php, programming
In this post I will show you how to store images in a database in Laravel 5.1. Almost for sure in most cases better solution would be to store the images (or other files) directly in the file system. There are some advantages of storing images in database, though. For...
by core45 | Jan 27, 2016 | php, Uncategorized
If you want to add column to an existing PHP array you can do in accessing it by reference. In following example there is an array containing records of months numbers and names. We’d like to add a new column called ‘temperature’ containing our...
by core45 | Jan 9, 2016 | laravel, php, programming
Sometimes you’d like to have very simple and basic authentication similar to HTTP basic authentication applied to a directory. For example you’d like to protect an API accessible under https://www.example.com/secret-api. Obviously when using Laravel routes...
Recent Comments