Category: Coding

Using manually pagination in Laravel 5.1 2

Using manually pagination in Laravel 5.1

Recently I had necessity to use pagination in Laravel 5 without usage of Eloquent (it’s a legacy project which is being rewritten to laravel, so it’s using Propel orm and not Eloquent). As turned...

Using sum and count queries in propel 2 0

Using sum and count queries in propel 2

This is something really missing from propel docs. Sum query (count is done in the same way).

Fetching of single column as array.

 

Injecting services in Blade templates in Laravel 5.1 0

Injecting services in Blade templates in Laravel 5.1

It could be usefull to automatically inject some service in blade template (especially in partials). Now it can be done in folowing way:  

 

Laravel form error partial snippet 0

Laravel form error partial snippet

Just a short snippet to remind me how to use errors in a blade view.

 

Add Illuminate/Html to laravel project 0

Add Illuminate/Html to laravel project

Install necessary modules with composer

Add dependencies to /config/app.php

That’s all

Convertire file Yaml in un array in symfony 0

Convertire file Yaml in un array in symfony