Category: Code

0

Laravel Save Form Post

php artisan make:migration tasks in database / migrations / create tasks table – paste in up()  function Schema::create(‘tasks’, function (Blueprint $table) { $table->increments(‘id’); $table->string(‘title’); $table->text(‘body’); $table->timestamps(); }); php artisan make:model Task in class Task...

0

Laravel Deployment on Ec2

You gotta have composer installed cd /home/ec2-user/ sudo curl -sS https://getcomposer.org/installer | php // sudo mv composer.phar /usr/local/bin/composer cd /var/www/html/website-directory // make vendor folder sudo mkdir vendor // change permissions sudo chmod -R 755...

0

Get Url In Laravel

There are a bunch of ways to grab the url in Laravel. Here are a few of the ways I have found. Grab whole Url \URL::current(); //returns http://site.localhost/order/202 Grab just the requested URI \Route::current()->uri...

0

PHP Cookie Problems

Cookies have been around forever – they are browser based variables that can be set to expire in the future. The variables are helpful for letting a user bounce around from page to page...

0

Loggly Apache Missing Access Logs

I’ve been using Loggly to consolidate my server logs for about a month now.  Overall I’m extremely satisfied with the service and think that making my server logs more accessible has allowed me to...

0

Predatory Sales Tactics of Web Security

Disclaimer: This is not a review or a recommendation for the site protection services the company discussed in the article offer. I’m sure that the services they provide are top notch and worth the...

0

Mysql unresponsive after DB Import

Here’s your scenario. You’ve installed mysql on your local machine. Everything was working fine. Then you decided to download a few remote mysql database dumps and update your local databases. But as soon as...

0

Monitor Web Connections to an Apache Server

I run quite a few different servers and recently just launched an AWS Ec2 instance. Unfortunately the Ec2 started to hang and become unresponsive even though the server was online the sites running on...

0

Javascript ROI Calculator

I created a little calculator tool in JS that a user can input their cost, and gains and get the ROI calculated back. I also created an additional form that will take the cost...