Search Results For: controller
Showing 1 to 5 of 5 blog articles.
635 views · 9 days ago

![Introduction to Gitlab CI for PHP developers](

As a developer, you've probably at least heard something about [CI - Continuous integration]( And if you haven't - you better fix it ASAP, because that's something awesome to have on your skill list and can get extremely helpful in your everyday work. This post will focus on CI for PHP devs, and specifically, on CI implementation from [Gitlab]( I will suppose you know the basics of [Git](, [PHP](, [PHPUnit](, [Docker]( and unix shell. Intended audience - intermediate PHP devs.

Adding something to your workflow must serve a purpose. In this case the goal is to automate routine tasks and achieve better qualit...

2150 views · 151 days ago

![Working With Thin Controller And Fat Model Concept In Laravel](

Models and controllers are one of the most essential programming handlers in the Laravel MVC framework, and both are used vastly for different functional operations. Models in Laravel are created inside the app folder and are mostly used to interact with the database using Eloquent ORM, while the controllers are located inside the directory App/Http/Controllers.

As a programmer, you should have the knowledge how to keep the balance in between the programming usage of Models and controllers. As which one should be more utilized for allowing functional tasks in applications deployed on any [PHP MySQL hosting](

## What is the Concept of Thin Controller and FAT Models

The concept of ...

4548 views · 153 days ago

![Generate PDF from HTML in Laravel 5.7](

Today, I will share with you how to create a PDF file from HTML blade file in Laravel 5.7. We will be using `dompdf` package for generating the PDF file.

In the below example, we will install `barryvdh/laravel-dompdf` using composer package and thereafter we will add new route url with controller. Then we will create a blade file. Then after we have to just run project with serve and we can check the PDF file is for download.

## Download Laravel 5.7

Now I am going to explain the step by step from scratch with laravel installation for `dompdf`. To get started, we need to download fresh Laravel 5.7 application using command, so open our terminal and run the below command in the command prompt:


composer create-project --prefer-dist laravel/lara...

1350 views · 160 days ago

![Creating a Tiny Blog Management system in Laravel 5.7](

Hey There,

I am expecting you are familiar with PHP. In this post I will be using the Laravel framework to create a small blog system. I am showing here very simple steps to create blogs, If you want this complete code then please message me.

**What are major Prequisites for Laravel:**

* PHP version >= 5.6

* Composer should be installed in system

Create a project with name tiny_blog with following command

```composer create-project laravel/laravel --prefer-dist tiny_blog```

enter into the laravel project

```cd tiny_blog```

create a migration file using following artisan command

<pre>php artisan make:migration create_blog_table</pre>

After this command you will fou...

1189 views · 167 days ago

![Making Charts and Graphs using Laravel](

## Installing composer

Composer is a package management tool for PHP. Laravel requires composer for installation. We can download composer from [](

After installation that you can test whether composer installed or not by command


## Installing Laravel

The current stable version of laravel is laravel 5.6. We can install laravel package with three ways.

In command prompt or terminal by running `composer global require "laravel/installer"` and then `Laravel new `


We can create the project with Composer by running `composer create-project --prefer-dist laravel/laravel `