laravel command to run a blade

-2

hello I want to create a command in laravel that runs once a week to call me a blade, that has a script and that combines ajax and php which generates some images I already have the command as php artisan img :: images

    <?php

    namespace App\Commands;

    use App\Commands\Command;
    use Illuminate\Contracts\Bus\SelfHandling;

    class imagenes extends Command implements SelfHandling
    {
        /**
         * Create a new command instance.
         *
         * @return void
         */
        public function __construct()
        {
            //
        }

        /**
         * Execute the command.
         *
         * @return void
         */
        public function handle()
        {
            //
        }
    }
    
asked by Billy Nieto 05.03.2018 в 16:41
source

1 answer

0

I do not understand your question very well, but let's see if I throw an answer enlightens you ...

If what you have is a working php that calls a blade (uno.php), would not it be a php command one.php what you need to run with a cron or a .bat?

    
answered by 05.03.2018 в 18:12