Skip to content

Instantly share code, notes, and snippets.

View arodbits's full-sized avatar

Anthony Rodriguez arodbits

View GitHub Profile
@davidpiesse
davidpiesse / Schedulable.php
Last active September 7, 2023 15:22
Laravel Custom Class/Model Scheduling
<?php
//Don't forget to change the namespace!
namespace App\Traits;
use Cron\CronExpression;
use Illuminate\Support\Carbon;
use Illuminate\Console\Scheduling\ManagesFrequencies;
trait Schedulable{
@arodbits
arodbits / Hello-Angularjs.markdown
Created October 17, 2014 00:44
A Pen by Anthony.

Hello Angularjs

Short demo about how angular provides a rich way to provide two-way data binding.

A Pen by Anthony on CodePen.

License.

@JeffreyWay
JeffreyWay / routes.sh
Created October 15, 2014 17:21
Add this to your ~/.bashrc file (or anywhere related) to give yourself an easy way to view the routes in your Laravel app, or filter the results down to a particular search query.
function routes()
{
if [ $# -eq 0 ]; then
php artisan route:list
else
php artisan route:list | grep ${1}
fi
}