| Recommend this page to a friend! | 
|  Download | 
| Info | Documentation |  Files |  Install with Composer |  Download | Reputation | Support forum | Blog | Links | 
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 52 | All time:  10,676 This week: 455  | ||||
| Version | License | PHP version | Categories | |||
| nova-text-field-with 1.0 | Custom (specified... | 5 | HTML, PHP 5, Libraries | 
A Laravel Nova text field with a custom icon
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/text-with-icon
<h4>Add the below to nova/resources/views/layout.blade.php</h4>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<h4>Add the below to Nova/User.php resource:</h4>
  TextWithIcon::make('test')
      ->icon('fab fa-twitter-square') //set icon full name. Browse icon gallery at https://fontawesome.com/icons?d=gallery&m=free
      ->position('in') //here you can set icon position to be inside or outside the text field.
      ->color('#1997EF'),//also you can set icon color
         
<img src="https://raw.githubusercontent.com/naifalshaye/nova-text-field-with-icon/master/screenshots/screenshot.png" width="700">
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
|  Files (16) | 
| File | Role | Description | ||
|---|---|---|---|---|
|  dist (2 directories) | ||||
|  resources (2 directories) | ||||
|  screenshots (1 file) | ||||
|  src (2 files) | ||||
|    composer.json | Data | Auxiliary data | ||
|    LICENSE | Lic. | License text | ||
|    mix-manifest.json | Data | Auxiliary data | ||
|    package.json | Data | Auxiliary data | ||
|    README.md | Doc. | Documentation | ||
|    webpack.mix.js | Data | Auxiliary data | ||
|  Files (16) | / | resources | / | js | / | components | 
| File | Role | Description | 
|---|---|---|
|    DetailField.vue | Data | Auxiliary data | 
|    FormField.vue | Data | Auxiliary data | 
|    IndexField.vue | Data | Auxiliary data | 
|  Files (16) | / | src | 
| File | Role | Description | 
|---|---|---|
|  FieldServiceProvider.php | Class | Class source | 
|  TextWithIcon.php | Class | Class source | 
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. | 
|  Install with Composer | 
|  | nova-text-field-with-2019-02-19.zip 65KB | 
|  | nova-text-field-with-2019-02-19.tar.gz 63KB | 
|  | Install with Composer | 
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% | 
 | 
 | 
| Applications that use this package | 
 If you know an application of this package, send a message to the author to add a link here.
 If you know an application of this package, send a message to the author to add a link here.