Comments (5)
Hooking bundles in Laravel 4 is a little different than in Laravel 3.
You need to do two things :
- First : Hook the Former service provider to Laravel, it's the equivalent of the old
start.php
file, it binds routes, config, models etc to Laravel. You need to go inapp/config/app.php
and addFormer\FormerServiceProvider
in theproviders
array. This is the equivalent of adding Former to yourbundles.php
file in Laravel 3. - Second : As in Laravel 3 it will hook Former to Laravel but it will still be in its namespace, so you need to add the Former facade to Laravel, by adding
Former\Facades\Former
to thealiases
array in the very same file. This step is the same than in Laravel 3 excepted that you reference a Facade instead of the actual class.
from former.
Thanks for that. Progress, but a new error message
Fatal error: Class 'Underscore\String' not found in
/path/to/vendor/anahkiasen/former/src/Former/Helpers.php on line 35
Do I need to do something similar for other dependencies? I don't see a service provider in Underscore so I guess it works a bit different
from former.
Update Composer, I worked a lot on Underscore last night, some classes moved, and I forgot to update Former as it depends on Underscore.
from former.
that's got it. thank you
from former.
I updated the README on the composer branch while I was at it :)
from former.
Related Issues (20)
- Add method to create new field from string HOT 7
- Allow field->required() to receive a boolean HOT 1
- Allow field->inline() to receive a boolean HOT 2
- Add a Choice field type HOT 4
- Laravel 5.7 support HOT 1
- Support Bootstrap4 HOT 1
- Former Twitter Bootstrap 4 Not working HOT 2
- Custom Rule classes not working HOT 1
- Bootstrap 4 Framework uses wrong classes for input group & no classes for checkbox HOT 8
- Can Former be used outside/without Laravel? HOT 2
- Multiple attributes treated differently from single attribute in queryToArray
- Form echo like a text Laravel 5.7
- Encode checkbox value to prevent XSS attack HOT 1
- Bootstrap 4 throws error without open and close tag HOT 2
- How to style checkboxes HOT 6
- Laravel 8 support. HOT 1
- How to use vuejs directives with former HOT 2
- Former::date help HOT 1
- _method HOT 2
- How to use as a standalone PHP HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from former.