Skip to content

erekle1/laravel-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Weather

Installation Guide

Require this package in your composer.json and update composer.

composer require erekle/weather

After updating composer, add the ServiceProvider to the providers array in config/app.php

Erekle\Weather\WeatherServiceProvider::class,

You can use the facade for shorter code. Add this to your aliases:

'Weather' => Erekle\Weather\Facades\Weather::class,

To publish the config settings in Laravel 5 use:

php artisan vendor:publish --provider="Erekle\Weather\WeatherServiceProvider::class"

This will add an weather.php config file to your config folder.

Usage

Get current weather by default values, these are in config/weather.php.

$currentWeather = Weather::get();

Releases

No releases published

Packages

No packages published

Languages