API Authentication with Laravel 5.6 and Angular 5: Part 3 – CRUD with Postman

API Authentication with Laravel 5.6 and Angular 5: Part 3 – CRUD with Postman

In the 2nd part, we set up our API, CORS, Passport for JWT type authentication and tested Registration, Login, Protected Routes with Postman.

In this part, we're going to:

  • Make a model named Album, set up migration
  • A CRUD controller (resource controller) named Albums
  • CRUD Routes
  • Test it all out with Postman

Read More

Posted by Yousof K. in Angular, Laravel, 0 comments
API Authentication with Laravel 5.6 and Angular 5: Part 2 – The API, CORS, Bearer Token

API Authentication with Laravel 5.6 and Angular 5: Part 2 – The API, CORS, Bearer Token

In the first part, I discussed a few things related to using API, problems and what we're going to do to the best of my ability and understanding.

In this part, we're going to:

  • Set up our API using Laravel 5.6
  • Set up CORS to be able to accept AJAX requests to Login and Sign Up routes
  • Use Postman to verify that these are working as expected
  • Use Laravel Passport to start using oAuth for supplying bearer token to users when they are logged in or signed up. This token will allow the front end application to both guard its routes, and guard requests in protected Laravel routes.

Read More

Posted by Yousof K. in Angular, Laravel, 4 comments
API Authentication with Laravel 5.6 and Angular 5: Part 1 – Intro, Tools

API Authentication with Laravel 5.6 and Angular 5: Part 1 – Intro, Tools

Laravel is what brought me back to loving PHP. It’s just too awesome! I was growing accustomed to RoR and Python. But it felt like too much to do for some projects and many clients would not want to do projects in those languages. I found Laravel and I was hooked.

While I love Vue.js, and it is very well integrated with Laravel, Angular is still one of the most widely used Javascript framework out there. It is a very useful tool to have in your shed for a strong career in the industry.

WARNING: There will be walls of text. I will spread this out to multiple parts. There will be no TL;DR section. 😁

Posted by Yousof K. in Angular, Laravel, 0 comments
ISPConfig – A Free Alternative to cPanel/WHM for your VPS

ISPConfig – A Free Alternative to cPanel/WHM for your VPS

If you have worked with cPanel and WHM for a long time, you grow accustomed to it. These products are well maintained and widely used. They are the best at what they do and if possible you should use them.

However, they are very expensive for my taste. If you are like me, you don’t really mind doing a few things by hand, and much rather not pay for small setups of a few sites of your own or your company, you need an alternative that provides most of what cPanel does.

Continue reading →

Posted by Yousof K. in VPS, 0 comments