Posts

Showing posts from September, 2018

Distinction between design principle and design pattern

Difference between Design Principle and Design Pattern In the software engineering, design principle and design pattern are not the same. Design Principle: It provides high level guide lines to design better software applications. Design principles do not provide implementation and not bound to any programming language. E.g. SOLID (SRP, OCP, LSP, ISP, DIP) principles. For example, Single Responsibility Principle (SRP) suggests that a class should have only one and one reason to change. This is high level statement which we can keep in mind while designing or creating classes for our application. SRP does not provide specific implementation steps but it's on you how you implement SRP in your application. Design Pattern: It provides low level solution (implementation) for the commonly occurring object oriented problem. In another word, design pattern suggest specific implementation for the specific object oriented programming problem. For example, if you want create a c...

Laravel Socialite package Implementation

It is used to make a communication with social applications. If you want to authenticate your application without login or registration then you need oauth login or oauth registration. Here, I will use laravel-socialite package to implement oauth. It is described step by step as belows: Step 1: fill your config/services.php file with below credentials, you should take your expected social app's credentials: <?php return [ 'facebook' => [ 'client_id' => env ( 'FACEBOOK_CLIENT_ID' ), 'client_secret' => env ( 'FACEBOOK_CLIENT_SECRET' ), 'redirect' => env ( 'FACEBOOK_REDIRECT' ), ], 'google' => [ 'client_id' => env ( 'GOOGLE_CLIENT_ID' ), 'client_secret' => env ( 'GOOGLE_CLIENT_SECRET' ), 'redirect' => env ( 'GOOGLE_REDIRECT' ), ], 'twitter' => [ 'client_id' => env ( 'TWITTER_C...

how create a new apps for facebook login in a web sites? step by step procedures.

Step1: Go to  developer.facebook.com/apps  Step2: click on 'Create a new app' Step3: Add your domain name Step4: Add your website url Step5: Add Facebook login as product Step6: Add redirect url in facebook login settings, url must be live

How to create github app ( for developers )

Step 1: Login to your github account Step 2: go to  https://github.com/settings/developers Step 3: click on the 'New Oauth App' button at the right conrner Step 4: fill the fields very carefully and click the Register application button   Done..............Take all credentials (client is, secret key ) for using in your application Thanks