Comments (13)
That was me being silly, whoops! But now I'm just getting this: ErrorException: Catchable Fatal Error: Argument 1 passed to Former\Framework\Nude::__construct() must be an instance of Illuminate\Container, instance of Illuminate\Foundation\Application given, called in /Applications/MAMP/Web/Sites/LearnLaravel/vendor/anahkiasen/former/src/Former/FormerServiceProvider.php on line 36 and defined in /Applications/MAMP/Web/Sites/LearnLaravel/vendor/anahkiasen/former/src/Former/Framework/Nude.php line 20
from former.
So you're using the Composer branch I gather ? Show me your code so I can assure you the syntax is right (since the docs haven't been updated yet) ?
from former.
Yes, Composer, and I haven't adjusted to the proper Former syntax yet, just using the errr...former one lol! So it looks like this:
Former::open('admin/posts', 'POST');
Former::label('title', 'Title');
......
Former::close();
The docs seem to say that should work, but maybe it's changed
from former.
No I meant to switch framework, what command did you go with ?
from former.
Former::framework(null); at first, I then went into config and set it to null, but soon realised it should be 'Nude'.
Then I got the other error...
from former.
Ok I think this might have to do with the recent changes to Laravel 4, I'll update the package see if nothing got broke in the process.
from former.
That is likely as earlier today I had a very similar error on meido/form because it an old version which didn't work with the latest L4! Fixed now though :)
from former.
Ok updated Former, should work now.
from former.
Is Former::framework() required if a config.php has been compiled?
Unless I set the framework ( i.e., Former::framework('TwitterBootstrap') ), I get the following error:
FatalErrorException: Error: Using $this when not in object context in /Users/chris7519/Sites/Laravel/Former/vendor/anahkiasen/former/src/Former/FormerServiceProvider.php line 35
from former.
Sorry, that was unrelated. Should work now.
from former.
Perfect! Thanks!!
from former.
No problem. :)
from former.
Well, now that everything works I have to say Former is absolutely amazing!!
Former::populate(); is one of the biggest timesavers I have ever seen, dramatically simplifies building forms, I love 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.