Why showing undefined service and aliases in app file in laravel? - php

I am using laravel 5.1. Some files in service and aliases are showing undefined. I don't know what goes wrong here. It is showing this....
and also in aliases..
I am new in laravel. I don't know what happened there. Any kinds of help will be appreciated.Thanks

Try using this package: Laravel 5 IDE Helper Generator
This package generates a IDE helper to help your IDE. Take a look if this help you.
Regards

Related

How can i create custom log file using laravel 4.2 version?

I want to change the log format in the 4.2 version of laravel. But I have no idea about this.
Please help me to find the solution or guide me to solve my problem.
I searched a lot on google but still had no success.
Format
public const SIMPLE_FORMAT = "[%datetime%] %channel%.%level_name%: %message% %context% %extra%\n";
Any solution appreciated!
You may consider updating your laravel system. From 5.6 you can configure it easily with adding an enviroment variable. More details:
https://laravel.com/docs/5.6/logging

How can i setting up HWIOAuthBundle with Symfony4?

I try to make a web application in symfony4. I want to make login/register system with HWIOAuthBundle, but I can't find a good setting up guide just for Symfony3. Anybody can help me?
Thanks a lot
I think original docs are OK: https://github.com/hwi/HWIOAuthBundle/blob/master/Resources/doc/1-setting_up_the_bundle.md
Basically, bundles' configurations in Symfony 4 are pretty similar to Symfony 3 so you can try to use original docs. BTW there're some notes about Symfony 4.1 in this docs, so I'm sure that they will help you.

Validator error when posting a thread in Laravel Chatter

I've recently updated my app from Laravel 5.1 to 5.3.
Soon after this, I tried installing chatter.
I followed the instructions, found here: https://github.com/thedevdojo/chatter
After following all the steps, I ran into a few problems, due to having my own user model/user auth system. But I changed things up chatter's config file, and now the forum loads fine (albeit with a few styling errors due to my main css file overriding somethings, but that's a minor issue).
The problem is that, when I try to post a new thread/discussion, I receive the following error:
which is referencing this line in ChatterDiscussionController.php:
and this line in ChatterBeforeNewDiscussion.php:
Could someone a bit more knowledgeable tell me what's going on here?
Please open up vendor/devdojo/src/Events/ChatterBeforeNewDiscussion.php and change
use Illuminate\Validation\Validator;
to
use Illuminate\Support\Facades\Validator;
I will make sure to fix this in the source for the Laravel Chatter Application.

Problems wit sign me up plugin

Hi i am trying to use Sign me up Plugin for my application. But unable to get it running. There are so many issues and errors.
Plugin i have downloaded is:-
sign_me_up-2.0
But there are so many errors i am getting
Ex:- Declaration of SignMeUpComponent::initialize() should be compatible with Component::initialize(Controller $controller)
I have tried for tutorials and serached for solutions online. But no luck...
Can anyone help me out on how to use this plugin ???
What i reffered :-
http://www.jotlab.com/2011/sign-me-up-a-cakephp-registration-plugin
Thanks in advance
Make sure your version of CakePHP is compatible with the plugin. I understand between version 1.3 and 2, they took advantage of the newer features of PHP which included strongly-typed method parameters. The error you're receiving is that the SignMeUpComponent inherits from the Component class which is in framework core. If the component wants to override the initialize method, it must follow the same method/function signature.
If the plugin is on Git and you feel comfortable in doing so, clone it and update all the components methods, and then put in a pull request so you're changes can be merged in.
Alternatively use an earlier version of CakePHP.

Mthaml composer package with Laravel 4 - Howto?

Original: Has anyone figured out, or is there anyone interested in helping me figure out how to use haml with Laravel 4?
Update: A fresh implementation of Laravel 4 using HAML(MtHaml) is being tested.
You can get it at my Github repo and test it out.
Note:
Mind that at this stage only the HAML/PHP engine is working, thus template inheritance is not yet working. For template inheritance to work MtHaml needs to be run through the HAML/Twig engine which then will give us all of Twigs Template Engines power and a really nice OOP-like syntax for our loops and such.
If anyone likes to help out with finishing the package to include Twig for a fully functional Template Engine feel free to Fork and Pull!! :D
Thank you.
Does it need to be any more complicated than using the Composer package?
https://github.com/arnaud-lb/MtHaml
I just created this because I wanted to get into HAML on a project. Let me know if it works for your needs: https://github.com/BKWLD/laravel-haml
I managed to get Laravel 4 working with dzony's implementation of Jade ( https://github.com/dz0ny/jade.php ) let me know if you are interested.
It does work with template inheritance using Blade Engine.

Categories