1

I installed using composer the following library: https://github.com/kreait/firebase-php

Unfortunetly, there are no documentations about how to add it to include and use it on my Laravel project.

How I can use this class? Currently I get this:

message":"Class 'App\Http\Controllers\Firebase' not found"

1 Answer 1

6

You're currently in a namespace, which mean if nothing is specified it'll look in:

<?php

namespace App\Http\Controllers;

Specify to import your library in the namespace:

use Firebase;

It will load the class in the controller.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.