I'm confronted to a little problem, i try to add a method to show only online article, but i want to know how do implement this method.
In my DB i have a row is\_online (Int) for 0=> offline, 1=>online, how do implement that for my view.

in my models with 

```
public function isonline(){}

```

or in my PostController in my request of post find.

And after need to add in my admin panel a check box in Post create to change the status off article (online or offline-draft).