public function version()
    {
        $app = $this->app;
        $tab = explode('Laravel Components ', $app->version());

        return intval(empty($tab[1]) ? $app::VERSION : $tab[1]);
    }
public function version()
    {
        $app = $this->app;
        $tab = explode('Laravel Components ', $app->version());

        return intval(empty($tab[1]) ? $app::VERSION : $tab[1]);
    }
public function version ( ) { $ app = $ this -> app ; $ tab = explode ( 'Laravel Components ' , $ app -> version ( ) ) ; return intval ( empty ( $ tab [ 1 ] ) ? $ app :: VERSION : $ tab [ 1 ] ) ; }
Get the major Laravel version number.

@return int
Get the major Laravel version number .