Laravel and carbon date fields
If you have date columns in your table then you should define them as dates in your model. Eg. class Photo extends […]
If you have date columns in your table then you should define them as dates in your model. Eg. class Photo extends […]
Use the following URL to test you structured data https://search.google.com/structured-data/testing-tool
If you want to search for a string inside a table and replace it with something else you can use the following […]
My favorite box shadow for overlays is box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .2); See example in codepen: http://codepen.io/rizopoulos/pen/YqoaXe
Div with transparent background The div that has the background and the opacity needs to be positioned absolute with lower z-index that […]
You can easily make a slider that scroll vertically, just initialize it as shown below: $(‘YOUR_SELECTOR’).slick({ vertical: true, infinite: false, dots: false, […]
If you want to redirect all non-www requests to your site to the www version, all you need to do is add […]
Applying a very large border radius work on many browsers (IE9+, FF, Chrome) border-radius: 300px; Special thanks to Paris Kapsouros Example in […]
Assuming you have a Photo model than belongs to a Gallery model. You also have set the Dingo plugin and your routes.php […]
Imagine you have many galleries each one has many photos. When you visit a specific gallery, eg: /galleries/2 you want to paginate […]
Let’s say you have a photos table with a field view_count. Every time the photo is shown you want to increment the […]
If you have a page with slug /slug and in that page you add a custom pagination or query string ?page=MyCustomPage and then reload the […]
If you want to redirect all traffic from http to https, just put the following lines in your .htaccess file. RewriteCond %{HTTPS} […]
If you forgot your admin password then add the following line in you theme’s functions.php wp_set_password(‘123’, 1); After that, navigate to the […]
Open regedit. Goto HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics Set the values of BorderWidth and PaddedBorderWidth to 0 ref: http://www.askvg.com/registry-tweak-to-decrease-window-border-size-and-padding-in-windows-8/
If you have links inside your slide and you want to be clickable then you have to disable the swipe option in […]
If you get some errors like ’ instead of apostrophe try the following $contents = mb_convert_encoding( file_get_contents( ‘FILEPATH_OF_PROBLEMATIC_FILE’ ), “HTML-ENTITIES”, “UTF-8” […]
If you want to use the skycons icons with forecast.io then the following code will fit your needs. First inlcude the skycons.js […]
If you want to align a div vertically center and you don’t know its height use the below code: .element { position: […]
Fahrenheit to Celsius converter: function f2c(ftemp) { return Math.round((ftemp – 32) * 5 / 9); }