Neo4j is an open-source, NoSQL, native graph database that provides an ACID-compliant transactional backend for your applications. Neo4j is referred to as a native graph database because it efficiently implements the property graph model down to the storage level. This means that the data is stored exactly as you whiteboard it, and the database uses …
Install laravel package from local folder
When we develop laravel packages, they should be uploaded to packagist in order to test it. It’s very annoying to update some small code snippet, upload again and test. In order to prevent this, there is a way to install laravel package from local folder. Add this code snippet to composer.json And run composer install …
Laravel divide migrations into separate folders and run at once.
Add following code snippet in boot method of AppServiceProvider After that we can just run `php artisan migrate` and all migrations will be run at once.
Repng
repng is a npm library which converts any React component to a png file. The usage of this library is very simple as following. Here are more details. https://www.npmjs.com/package/repng https://github.com/jxnblk/repng
nivo chart
nivo provides supercharged React components to easily build dataviz apps, it’s built on top of d3. Several libraries already exist for React d3 integration, but just a few provide server side rendering ability and fully declarative charts. In order to use nivo, you just have to pick the scoped @nivo packages according to the charts you wish to …
laravel-make-repository
Laravel framework provides a bunch of artisan commands. We can create models, controllers and resources using artisan commands but repositories are not supported by default. laravel-make-repository package makes it possible. composer require laravel-make-repository php artisan make:repository RepositoryName
worker-loader
This is npm package which enables to use WebWorker in webpack based projects. Importing the library import Worker from ‘worker-loader!./Worker.js’; Webpack config Use
laravel-activitylog
spatie/laravel-activitylog package provides easy to use functions to log the activities of the users of your app. It can also automatically log model events. All activity will be stored in the activity_log table. Here’s a litte demo of how you can use it: activity()->log(‘Look mum, I logged something’); You can retrieve all activity using the Spatie\Activitylog\Models\Activity model. Activity::all(); Here is …
React Hackin Solution – Passing variables and methods to props.children
We can pass variables and methods to props.children following way. React.Children.map(children, child => React.cloneElement(child, { method: methodName } ) This is useful when we need to pass variables and methods to react components which is embeded from props.children.