Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Archive for December, 2015

Happy Holidays & Great New Year

Thursday, December 24th, 2015 by Servage
Happy_HolidaysWe at Servage wish everyone happy holidays and a great new year. We would like to take this opportunity to thank you all for being great customers, and we hope you are getting the best out of your Servage products. At this time of celebration across the world, we hope you all have a good time with the people important to you, and may be able to put aside the everyday duties for just a little while, to enjoy the moment. We also wish you all get a great start into the new year 2016 and will be enjoying your Servage products throughout the year. Remember to contact us if there is ...

Super quick development with Lumen

Saturday, December 19th, 2015 by Servage
lumenLumen is the name of a lightweight PHP framework based on Laravel. It offers a super quick way of starting simple projects that can grow easily. Lumen relies on the powerful foundation of Laravel, but offers a much simpler interface to program with. While much of the documentation shows that building applications with Lumen looks a lot like Laravel, it does offer the functionality in a simpler way. Upgrade to Laravel anytime Lumen does not give you all the features of Laravel. If you need all those features you should obviously choose the full framework, but for many small projects you would be better of with Lumen, because you can get started so ...

Aggregate content from social media

Wednesday, December 16th, 2015 by Servage
social-aggregationBuilding content is crucial for many websites nowadays. If you run a blog with primary income from advertisements, then you need to attract new and recurring readers every day. If you run an online store selling products, then you need to attract customers and funnel them through to a purchase again and again. Even non-commercial sites wish to spread their message and need to generate and optimize their content to spread their messages. Own content vs. aggregated content Generating own content is the best and most original way of building your site. This works well if there is often something new or noteworthy to write about. Entities that have events on a regular ...

Implementing relationships in Eloquent models

Thursday, December 10th, 2015 by Servage
data-modelFollowing up on the recent article about Laravel models, this article will show how you can implement model relationships with Eloquent. Relationships between objects and database models are basically the foundation or blueprint on how models relate to each other. This has an impact on the way you can work with data. Defining model relationships in Eloquent provides you with a lot of functionality right out of the box. Relationship types Basic understanding of relationship types is required to define the correct relationships between models. Let us say you have an online store, so everything you have evolves around your products (i.e. the product model). Your products can have zero, one or multiple images, ...

Basic understanding of models in Laravel

Sunday, December 6th, 2015 by Servage
eloquentWhen working with Laravel you will soon realize that the Eloquent model system is a core functionality with lots of powerful features. It drives your entire object and database handling, and relieves you of repetitive tedious code writing. With Eloquent you can use structured data objects easily. Creating new models You can generate models with the "artisan" command in Laravel. Below is an example (with and without generation of a migration file): php artisan make:model Product php artisan make:model Product -m It is convenient that you can generate the migration file right away if you are building a database model. The migration file is where you define the database changes required to facilitate a new or changed ...

Useful CSS snippets

Thursday, December 3rd, 2015 by Servage
cssStylessheets define the visual appearance of your website. Technically speaking the stylesheets include instructions on sizing, position, color and all other aspects of the DOM elements' display. Nowadays there are frameworks to make the process of defining your stylesheets easier. Usually the work is still done by hand in text editors and sometimes aided by tools, color pickers etc. Also stylesheets have transformed from being mere CSS to the smarter and more intelligent systems SASS and LESS, which allow for a programmatic approach to writing stylesheets. The later two languages allow you to define variables and use them in calculations you can perform in your stylesheet. Also code blocks allow for ...