php - How to add a class alias in Laravel -


I added it to the compiler with Larvell 4 and I am able to use this API: < Pre> $ MailChimp = new \ Drewm \ MailChimp ();

How can I create an example of MailChimp () without such a route:

 $ MailChimp = new MailChimp ();    

You manually config / app.php : < / P>

  'aliases' = & gt; Array (// Other Larval nickname 'Melchipper' => Druym's Mailpap);   

You can now use MailChimp anywhere in the lहेरwail app.

Comments

Popular posts from this blog

sonata admin - how to add ManyToOne property field in configureListfield in sonataAdmin -

wpf - ControlTemplate with changes for every class -

python - how we can use ajax() in views.py in django? -