We have released the v1.1.5 version of WP Bones with several fixes, improvements and new features. In particular, we have re-designed the demo branch along with the master/boilerplate to start to develop a WordPress plugin. Don’t forget to have a look at the Wiki. We have also created a Discussion to contribute in a better […]
Category / Laravel
Today I’m excited to introduce you WP Bones, a plugin framework for WordPress written with Composer. WP Bones providing a set of tools and rules to facilitate the WordPress plugin. Also, the aim of Bones is to be able to write a Plugin such as Laravel Framework application.
As you know, the php artisan command has the –ansi option to force the ANSI colour output. Anyway, if you have developed your artisan command, you may wish to display its output in ANSI colour mode, you can force it by using: Of course, you may put the above code in your construct method.
When you are writing a Laravel package, usually you need a config file.Also, we will publish the config file in the “boot” method of the service provider.Then, in the “register” method you can get the configuration and use it when you create the instance of “Facade”. Let’s see a typical config file:
If you are including jQuery by using a cdn such as https://code.jquery.com/jquery-2.2.4.min.js, Laravel Mix will emit an error when compiling your scripts. First of all, you have to copy on the root of your project a fresh copy of default `webpack.config.js` (see here for more details). Next, comment the following lines:
I love Laravel, and you? Overall, the Facades feature! When you use a facade like some Eloquent model, you have noticed the following case…