Explain make Method in Laravel?

0 votes
Can anyone explain me about the make method in laravel?
Mar 19 in Laravel by kartik
• 4,560 points
26 views

1 answer to this question.

0 votes

Hey,

You may use the make method to resolve a class instance out of the container. 

The make method accepts the name of the class or interface you wish to resolve:

$api = $this->app->make(‘HelpSpot\API’);

Hope this is helpful!

Thank you!

answered Mar 19 by Niroj
• 8,620 points

Related Questions In Laravel

0 votes
1 answer

How to validate my application incoming data? Explain validations in laravel?

Hey @kartik, In Programming validations are a handy ...READ MORE

answered Mar 23 in Laravel by Niroj
• 8,620 points
30 views
0 votes
1 answer

How to make a constant and use globally in laravel?

Hii, You can create a constants.php page in config folder ...READ MORE

answered Mar 24 in Laravel by Niroj
• 8,620 points
19 views
0 votes
1 answer

Explain Extending Bindings in Laravel?

Hii,  The extend method allows the modification of ...READ MORE

answered Mar 26 in Laravel by Niroj
• 8,620 points
20 views
0 votes
1 answer

Explain Guarded Attribute in a Laravel model?

Hii, The guarded attribute is the opposite of ...READ MORE

answered Mar 27 in Laravel by Niroj
• 8,620 points
30 views
0 votes
1 answer

What is Laravel framework? Why one should use Laravel?

Laravel is a PHP web-framework; it utilized ...READ MORE

answered Mar 17 in Laravel by Niroj
• 8,620 points
32 views
0 votes
1 answer

How to download and install Lavavel framework?

Hey @kartik, First you must have xampp install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 8,620 points
30 views
0 votes
1 answer

Display Laravel in browser by using cmd promt?

Hello, First you need to have laravel install ...READ MORE

answered Mar 17 in Laravel by Niroj
• 8,620 points
19 views
0 votes
1 answer

How can we get started with Laravel through Xampp?

Hii, First you need to start Apache and ...READ MORE

answered Mar 17 in Laravel by Niroj
• 8,620 points
21 views
0 votes
1 answer

Explain the concept of encryption and decryption in Laravel?

It is a process of transforming any ...READ MORE

answered Mar 17 in Laravel by Niroj
• 8,620 points
22 views
0 votes
1 answer

What is the use of the Eloquent cursor() method in Laravel?

Hello, The cursor method allows us to iterate ...READ MORE

answered Mar 20 in Laravel by Niroj
• 8,620 points
34 views