Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import php classes #20

Open
marvinhosea opened this issue Nov 16, 2019 · 2 comments
Open

Import php classes #20

marvinhosea opened this issue Nov 16, 2019 · 2 comments

Comments

@marvinhosea
Copy link

While using facades like Mail, DB etc import them in the controller by default.

example

use Illuminate\Support\Facades\Mail;

.........

public function storeContact(Request $request)
    {
        Mail::to($request->form_email)->send(new ContactEmail('Hi there');

    }
@marchershey
Copy link

PLEASE!

@onecentlin
Copy link
Owner

@marvinhosea @marchershey
I collect some handy and useful packages for PHP productivity.
You may check it out!

https://marketplace.visualstudio.com/items?itemName=onecentlin.php-productive-pack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants