pkboom/laravel-pick

0.0.10 2023-09-07 14:01 UTC

This package is auto-updated.

Last update: 2024-04-11 15:32:13 UTC


README

Drop pick() in you code. Pick will pick up anything you pass along and show on pick server.

Installation

You can install the package via composer:

composer require pkboom/laravel-pick --dev

You can publish the config file with

php artisan vendor:publish --provider="Pkboom\Pick\PickServiceProvider" --tag="pick"

Usage

Download and install pick server.

git clone https://github.com/pkboom/pick-server.git
cd pick-server
composer install
composer setup

Spin up pick server. Actually we use valet. So server is already up and running.

Open pick-server.test and whatever laravel-pick sends will appear there.

After installing laravel-pick, use pick() in your app.

Route::get('/', function () {
    pick(time());
    pick(User::first());
    pick(time());

    return 'calm down';
});

Result at http://pick-server.test

image2.png

Testing

composer test