Laravel belongsToMany Example

Let’s talk about the belongsToMany relationship. Recently we created a really cool introduction to creating a link sharing website in Laravel. The tutorial covers many concepts including routing, models, controllers, and view creation. We even covered some basic relationships in Eloquent. One thing we didn’t cover was applying many to many relations using the belongsToMany method. Let’s see how we might go about doing this now.…

Build A Link Sharing Website With Laravel

Building your own applications, even on a simple or small scale, is a great way to build your skills. This Link Sharing Website tutorial using Laravel will help us to do just that. If you’d like to save yourself a little time, you could just as easily head on over to http://www.easylaravelbook.com/ and pick up a great pre written application, PHPLeaks. PHPLeaks is a Link Sharing Website that has everything you need to get a nice starter project going.…

Create A Bar Chart With D3 JavaScript

Create A Bar Chart With D3 JavaScript

In this tutorial we’re going to try our hand at creating a basic bar chart using D3 JavaScript. There are many concepts to cover, so we’ll go through them step by step. We’ll have a look at the various methods from the D3 library that enable us to create these striking visuals such as selection.selectAll(), selection.data(), selection.enter(), selection.append(), d3.scale.linear(), d3.scale.linear().domain(), d3.scale.linear().range(), d3.scale.ordinal(), d3.scale.ordinal().domain(), d3.scale.ordinal().rangeBands() and more.…

Drawing Scalable Vector Graphics With D3 JavaScript

Drawing Scalable Vector Graphics With D3 JavaScript

In the last tutorial, we learned about Scalable Vector Graphics. As we say, SVG is a markup language based on XML that is able to create mathematical based vectors to create beautiful graphics with no loss of quality no matter the size of the image. As we learned as well, you can can use a program like Adobe Illustrator to create graphics, and then simply save them in an SVG format to use in your web pages.…

What Are Scalable Vector Graphics?

What Are Scalable Vector Graphics

You may have heard about SVG and thought, “Just What Are Scalable Vector Graphics Anyway?” Well friend, you’ve come to the right place to learn! Scalable Vector Graphics also goes by the common acronym, SVG, and it is a vector image format based on the XML format. SVG was developed like most other common Web Technologies by the W3C, or World Wide Web Consortium. You’re likely familiar with SVG even if you dont’ realize it, since many of the emoticons that have taken over our modern society are created in an SVG format.…