i currently installed laravel and trying to create my first app, however when i required the laravel collective i get error above.
here is my composer.json
{
"require": {
"laravel/installer": "~1.1",
"laravelcollective/html": "5.1.*"
}
}
and my app.php have these lines..
providers=>
...Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
aliases=>
...'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
i've been reading and searching for solutions but currently they never worked for me.. any help will be appreciated.. thanks in advance..
UPDATE
this is my cmd as of now..
u have to use php artisan serve inside your project folder. not inside composer folder.
for eg, laravel is my project folder inside www directory,
so, f:/wamp/www/laravel> php artisan serve
Here are the steps I took to install it in my app in Laravel 5.1.
I would suggest you delete the vendor folder for this from your vendor files and remove that line from your composer.json file to start from scratch.
First, require the package:
composer require "illuminate/html":"5.0.*"
Next, add it to your providers:
'providers' => [
...
'Illuminate\Html\HtmlServiceProvider',
],
Finally, add it to your aliases:
'aliases' => [
...
'Form'=> 'Illuminate\Html\FormFacade',
'HTML'=> 'Illuminate\Html\HtmlFacade',
],
You can check to see if it has worked by doing the following:
1) php artisan tinker
2) > Form::text('foo')
Which should output "<input name=\"foo\" type=\"text\">"
It seems like you have installed the HTML package and you are trying to use it in your "old" laravel app.
If you install a new app using the composer it should work fine, but if you are trying to use it in your "old" app that you created before installing the form/html collective try to download the files and copy the files in the src folder to the config folder in your app and you are good to go.
Related
I've never used composer before, so I'm not sure what this error means or what I need to do. But I am trying to use PHPSpreadsheet to be able to convert excel files into php for adding information to a database.
Uncaught Exception: Composer autoloader could not be found. Install
dependencies with composer install and try again.
Can anyone tell me what I need to do to get this system working.
Running cPanel with PHP7 EasyApache4
I do have root access to dedicated server.
Looks like you haven't installed the packages via composer.
You have to create a file named "composer.json" on the root of your project.
it should be something like this:
{
"require": {
"phpmailer/phpmailer":"5.2.22",
"slim/slim":"2.0",
"rain/raintpl":"3.0.0",
},
"autoload": {
"psr-4": {
"ProjectName\\": "vendor\\projectPackage\\php-classes\\src"
}
}
}
After that you should run the command "composer install" on you git bash and it will download your dependencies and create an autoload for you.
Currently following tutorial in using bootstrap with angular-cli. Tutorial declares that I need to put 'bootstrap/dist/**/*' inside of angular-cli-build.js file. Can't locate.
Other solutions to this problem say to change:
Package.json file
"angular-cli": {},
to
"angular-cli": "1.0.0-beta.11-webpack",
This gives me an error.
ng serve already functions correctly.
node version : v6.6.0
npm version : 3.10.7
angular-cli: 1.0.0-beta.14
I went back to the Angular-Cli documentation and followed the bootstrap steps. If all else fails. Ignore the tutorial ;)
[https://github.com/angular/angular-cli#creating-a-build]
so my apigility admin area was working just fine before they updated it to ZF3.
No after composer update, I am getting this when I try to open /apigility/ui
Does anyone know what might be the problem and how can we resolve this issue ?
The Issue is:
In the error logs you'll find that css and js data is not loaded. As the rwoverdijk/assetmanager is removed since apigility Admin 1.5 some files are not loaded anymore.
Solution:
Follow part 2. of the Upgrade from https://github.com/zfcampus/zf-apigility-admin#initial-upgrade-to-15
I also tried part 1 what was also working because now the rwoverdijk/assetmanager is now on 1.7.1 (but i do not know if the incompatibility is solved with this version so i did it with the zfcampus/zf-asset-manager). I'm still on ZF2 but the issue is the same.
Install zf-asset-manager. This is a Composer plugin, and operates when installing or uninstalling a package. If you add this, you will need to follow these steps:
composer require --dev zfcampus/zf-asset-manager
rm -Rf ./vendor
composer install
The additional steps are necessary in order for the plugin to pick up on the assets from the other components and copy them to the public folder. After installation you ll find a folder apigility-ui in you
Something similar happened to me when I reused the same code for a new repository on my local development environment having set the base_path value on
./module/Application/config/module.config.php.
'view_manager' => [
'base_path' => 'https://subdomain1.example.com',..]
I solved it by deleting the base_path config value.
The view cannot be rendered fully as the wrong html base is injected to the rendered view. In my case the html base looked like
<base href="http://subdomain2.example.com.devhttps://subdomain1.example.com/">
Instead of
<base href="http://subdomain2.example.com.dev">
I'm developing web application using Extjs 6.0.1. I developed an class as follow:
Ext.define('Admin.view.main.Me', {
extend: 'Ext.panel.Panel',
xtype: 'ud_mf',
.
.
.
});
Now I want to publish it as ux. In Extjs 6.0.0 I don't know where direction copy my class. My workspace direction is as follow:
.sencha
Admin
build
ext
packages
workspace.json
What do I do?
Create a Folder named Ux and this in root directory
Add all code there with namespace Ux
Add this Folder in app.json in this code
"classpath": [
"app",
"Ux", // this is your folder
"${toolkit.name}/src"
],
In app.js file add in requires like 'Ux.*'
Build your project and run
I m reading the tutorial of getting started with zend framework2, when I came to this :
I don't know how to excecute this :
here is the link of the page : http://framework.zend.com/manual/2.0/en/user-guide/skeleton-application.html
How can I achieve this?
i have written a throughout article on how to install Zend Framework 2 on a windows environment. It is directed at Win7, but works very similar (if not identical) for XP, too.
Please read my Blog "Zend Framework 2 Installation on Xampp for Windows"
Well, the best way to get started with Zend Skeleton Application is:
$cd my/project/dir
$git clone git://github.com/zendframework/ZendSkeletonApplication.git --recursive
$cd ZendSkeletonApplication
In your project root you will find two files: composer.json and composer.phar. You can get more information about composer from the official Getting Started.
The composer.json file describes the project's dependencies:
{
"require": {
"php": ">=5.3.3",
"zendframework/zendframework": "~2.4"
}
}
In order to get the dependencies you need to execute from you project root:
$composer.phar self-update
$composer.phar update
Finally, you can start the internal PHP cli-server in the root directory:
$php -S 0.0.0.0:8080 -t public/ public/index.php
I hope this will help you to install and configure your app.
If you're using Windows, please check your php.exe directory. And execute it. Example:
C:\php\php.exe composer.phar self-update
If you're linux user, you already know the answer.
Zend Framework 2 has just been release and it is not a framework for newbies. There are a few different ways to install which you can find on http://framework.zend.com/downloads
or with XAMPP at Xampp In Windows
But I have the feeling that if you are having trouble at this point then ZF2 is not for you.
Per chance if you were on a Mac or Linux box, you would open the Terminal application. Navigate to the zend framework application (cd /path/to/app), and then run the commands.