for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Arcanedev\Assets\Pipes\Presets\Tailwind;
use Arcanedev\Assets\Helpers\Stub;
use Closure;
use Illuminate\Support\Facades\File;
/**
* Class CopyTailwindConfigFile
*
* @package Arcanedev\Assets\Pipes\Presets\Tailwind
* @author ARCANEDEV <[email protected]>
*/
class CopyTailwindConfigFile
{
/* -----------------------------------------------------------------
| Main Method
| -----------------------------------------------------------------
* @param array $passable
* @param \Closure $next
* @return mixed
public function handle(array $passable, Closure $next)
File::copy(
Stub::path('presets/tailwind/tailwind.js'),
base_path($passable['path'].'/tailwind.js')
);
return $next($passable);
}