Menu
  • Home
  • Recent Posts
  • My Skills
  • My Projects
    • All Projects
  • My Blog
    • PHP MySQL Development
    • Laravel Development
    • Javascript Development
    • WordPress Development
    • Magento Development
    • System Administration
  • Contact

Category: Laravel

SSH Key Set Up for Multiple GitHub Accounts

September 21, 2018
| No Comments
| Laravel, PHP MySQL Development

A great article on how to set up and manage ssh keys for multiple github accounts/repositories SSH Keys with Multiple GitHub Accounts

Read More »

Posted in Laravel, PHP MySQL Development

Debugging Webhooks

August 26, 2018
| No Comments
| Laravel, PHP MySQL Development

A webhook is an HTTP callback, that occurs when something happens (a resource changes its state). Webhooks provide a way to build event-driven apps, because you can be notified about changes. Since webhooks require a publicly accessible URL to function they can be hard to test from your local machine.  There are three main problems…

Read More »

Posted in Laravel, PHP MySQL Development

Large CSV Export

May 19, 2018
| No Comments
| Laravel, PHP MySQL Development

Sometimes you need to export a large amount of data from your database.  Obviously, if you are going to accumulate all data in an array and then write it to a csv file, you will eventually run out of memory.  A better solution is to use streams.  Here is how you can export data from…

Read More »

Posted in Laravel, PHP MySQL Development

Using Local and Public Disks

February 25, 2018
| No Comments
| Laravel

Having vagrant run on Windows host machine may cause some problems with symbolic links. After trying to make symbolic links to work and failing, I decided to use public disk in development and local disk in production. php artisan storage:link makes symbolic link from “public/storage” to “storage/app/public”.  When developing on windows-vagrant this command will not work properly,…

Read More »

Posted in Laravel

Laravel Jenkins CI

November 26, 2017
| No Comments
| Laravel, PHP MySQL Development, System Administration

This article covers installation of Jenkins on Ubuntu server and its usage to continuously integrate a Laravel application.  Besides LAMP/LEMP stack we need to install Java, Git, Composer, and Node to successfully use Jenkins. Before starting to install this software, let’s take care of miscellaneous  stuff. Miscellaneous (can skip this). Create mysql user and database….

Read More »

Posted in Laravel, PHP MySQL Development, System Administration

Laravel: Getting Authenticated User Early in the Controller

October 31, 2017
| No Comments
| Laravel

Sometimes there is a need to access the authenticated user in your controller.  If you do it in several methods in your controller, it makes sense to put the code in the constructor.  Unfortunately, the code below will not work. This happens because the request is not injected into the controller at the time of…

Read More »

Posted in Laravel

Composer: Path Repositories

October 30, 2017
| No Comments
| Laravel, PHP MySQL Development

When working on a php package it is inconvenient to push the package to github (or other repository) and then wait for the package to update using composer update.  For package development, composer has such feature as path repositories.  Let’s imagine we have a two folders on the same level:  my-app and  package.   my-app is an app — a test…

Read More »

Posted in Laravel, PHP MySQL Development

Adding Virtual Box Bridged Network Adapter to Laravel Homestead

September 16, 2017
| No Comments
| Laravel, System Administration

Vagrant allows you to configure bridged network adapter, so your vagrant(homestead) box can be seen on local network.  I order to make this possible by adding a line of code to homestear.rb script in scripts folder. I opted to add this line after the following code. 25 26 27 28 29 if settings.has_key?("networks") settings["networks"].each do |network| config.vm.network…

Read More »

Posted in Laravel, System Administration

Running Artisan Command as a Separate PHP Process in Laravel

September 9, 2017
| No Comments
| Laravel, PHP MySQL Development

In Laravel framework you can create commands and call them from php application.  One command can call another command, and another command, and so on.  But if an exception is thrown in one of the commands in this chain the whole chain breaks.  In order to avoid this problem and run each artisan command as…

Read More »

Posted in Laravel, PHP MySQL Development
  • 2 of 2
  • « Previous
  • 1
  • 2

Archives

  • July 2022
  • July 2021
  • April 2021
  • February 2021
  • October 2020
  • September 2020
  • August 2020
  • May 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • December 2018
  • November 2018
  • September 2018
  • August 2018
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • November 2017
  • October 2017
  • September 2017
  • July 2017
  • June 2017
  • December 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016
  • May 2016

Meta

  • Log in
Back to Main Page

© 2020 Alex Rusin. All Rights Reserved.