Example #1
0
 /**
  * Returns the compatibility version of Flare to use.
  *
  * This will either return 'LTS' for Laravel installs of
  * the Long Term Support branch (5.1.x) or 'Edge' for all
  * other versions (including dev-master).
  * 
  * @return string
  */
 public function compatibility()
 {
     if (strpos($this->app->version(), '5.1.') !== false && strpos($this->app->version(), '(LTS)') !== false) {
         return 'LTS';
     }
     return 'Edge';
 }
Example #2
0
 /**
  * Get the version number of the application.
  *
  * @return string 
  * @static 
  */
 public static function version()
 {
     return \Illuminate\Foundation\Application::version();
 }