PHPackages                             enniosousa/google-fonts-field-for-backpack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. enniosousa/google-fonts-field-for-backpack

ActiveLibrary

enniosousa/google-fonts-field-for-backpack
==========================================

Google Fonts field type for the Backpack for Laravel

v1.0.0(5y ago)343MITPHP

Since Aug 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/enniosousa/google-fonts-field-for-backpack)[ Packagist](https://packagist.org/packages/enniosousa/google-fonts-field-for-backpack)[ Docs](https://github.com/enniosousa/google-fonts-field-for-backpack)[ RSS](/packages/enniosousa-google-fonts-field-for-backpack/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Google Fonts field for Backpack
===============================

[](#google-fonts-field-for-backpack)

[![Latest Version on Packagist](https://camo.githubusercontent.com/fade2b3b3ecafe6a9008aa654924c08fc8b83aa45392ee0b3cc3b13c4f70b8ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f656e6e696f736f7573612f676f6f676c652d666f6e74732d6669656c642d666f722d6261636b7061636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enniosousa/google-fonts-field-for-backpack)[![Build Status](https://camo.githubusercontent.com/2dec849ea80240b70450f53847cec5451947dc4e9fff7d025c853c019375da63/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f656e6e696f736f7573612f676f6f676c652d666f6e74732d6669656c642d666f722d6261636b7061636b2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/enniosousa/google-fonts-field-for-backpack)[![Quality Score](https://camo.githubusercontent.com/b475adbe0944134a78185d527e7ce60f11106ef502bd2a997dd93e5f24b3b58b/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f656e6e696f736f7573612f676f6f676c652d666f6e74732d6669656c642d666f722d6261636b7061636b2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/enniosousa/google-fonts-field-for-backpack)[![Total Downloads](https://camo.githubusercontent.com/437f238b788f9816da2efc527e76370d51792264be6da8a08a6d1f0716fc8b6b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656e6e696f736f7573612f676f6f676c652d666f6e74732d6669656c642d666f722d6261636b7061636b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/enniosousa/google-fonts-field-for-backpack)

This package provides a `Google Fonts` field type for the [Backpack for Laravel](https://backpackforlaravel.com/) administration panel. The Google Fonts field allows admins to choose one or more fonts. All you need it's include the slylesheet link to you website.

Screenshot
----------

[](#screenshot)

[![image](https://user-images.githubusercontent.com/8731370/49556440-886de180-f8e2-11e8-8f0b-f34fc5b6aad9.png)](https://user-images.githubusercontent.com/8731370/49556440-886de180-f8e2-11e8-8f0b-f34fc5b6aad9.png)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require enniosousa/google-fonts-field-for-backpack
```

Publish the view

```
php artisan vendor:publish --provider="Enniosousa\GoogleFontsFieldForBackpack\GoogleFontsFieldForBackpackServiceProvider"
```

Usage
-----

[](#usage)

#### Dashboard

[](#dashboard)

```
CRUD::addField([
    'name' => 'subtitleFont',
    'label' => "Subtitle Font",
    'type' => 'google_fonts',
    //'options'=> ['Lora', 'Jura', 'Muli:300'], //optional
    //'allows_multiple'=> true, //optional, default is false
    //'default' => 'Lora', //optional, it cans be string or array
]);
```

#### Frontend

[](#frontend)

```
