Laravel Queues complete guide with batching and progress bar updated 2022

    By: Manu
    2 years ago

    So if you are getting started with the laravel queue guide you might need few things to make it working.

    So if you face any issue while working laravel queues. Make sure you have enough resources available. you can update php.ini file for that

    set values as given here

    post_max_size 1000M
    upload_max_filesize 1000M
    memory_limit -1
    max_execution_time 3000
    


    Or you can try adding this in code while executing php code.

    ini_set('post_max_size', '512MB');
    ini_set('upload_max_filesize', '512MB');
    ini_set('max_input_time', '-1');
    ini_set('max_execution_time', '3000');
    ini_set('memory_limit', '2048M');
    

    You can check your php info by using

    // add this in php file and php will display its current settings.
    
    phpinfo()
    

    There are few important links for this tutorial so check here

    Laravel Queues Docs

    Website to download large csv file

    Bootswatch for UI

    Axios

    Install php in macOS

    Important cdns to add in app

    // Bootstrap
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
    
    // Development version Vuejs 3
    <script src="https://unpkg.com/vue@3"></script>
    
    
    // Production version Vuejs 3
    <script src="https://unpkg.com/vue@3.2.22/dist/vue.global.prod.js"></script>
    
    // Axios
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    

    Download code zip if fails try gain using same download button. Link is working and tested.

    Hope this guide helped you.