News & Articles

Comparing Laravel’s input(), get(), and ->name methods of retrieving form data.

If you’ve been around Laravel for a while, you might have noticed there are three different ways in your controllers to retrieve input from your form. For instance, if you are trying to retrieve the name of a user from a form, your user controller might have one of the following lines of code: public function store(Request $request) { $name = $request->input(‘name’); // Or $name = $request->name; // Or $name = $re + continue reading

Think Big by Starting Small

Entrepreneurs think big. They have grandiose visions of how their business will shake the establishment and cement their name in human history. Think Gates, Jobs, Zuckerberg. But every entrepreneur must start somewhere and often the more well defined and narrow a vision you have for your business the more likely it is to be successful. When introducing a new product or service into the market, it is important to start small. Identify what the cor + continue reading

Custom Laravel Packages

Getting Started - autoload your namespace If you don’t already have a Laravel project up and running from which you would like to develop your package, go ahead and create a fresh install of Laravel so you can build the package there. The first real step in creating a Laravel package is to pick a namespace. Typically, this will be the camelcase name of a GitHub repository that you intend to use for distributing your package followed by a slas + continue reading

Running Behat Tests From Your Homestead Vagrant Box

Configuring your Vagrant box to use the Selenium server on your local machine turns out to be pretty straight-forward. The main benefit with this approach is that you can trigger Behat tests from the virtual machine and have the test run on the your local web browser (e.g. Chrome, Firefox, etc). The following steps assume you are using a Mac. It also assumes you are already somewhat familiar with Behat and running tests through Selenium2 on your + continue reading

RestWS with Unique Basic Auth and Drupal Auth Credentials

RestWS is a powerful Drupal module that sets out to turn any Drupal entity into a RESTful web service endpoint. Unlike other web services modules, RestWS requires very little setup and configuration; you basically turn it on and it's ready to go. It also comes with a submodule that uses basic auth credentials to attempt a Drupal login--something super helpful when wanting to limit CRUD functions to only specific Drupal users. Things start to fall + continue reading