Tag : str_random()


How to generate random unique string in Laravel 5?

Laravel provide several string helper that way we can use it easily like str_limit, str_plural, str_finish, str_singular etc. If you need to generate unique random string then you can use str_random() helper of Laravel. It is very simple and you can use easily. str_random() helper take one numeric argument and return number of unique string that you pass as argument. you can see it's syntax and example: <strong>Syntax:</strong> <pre> str_random(number); </pre> <strong>Example:</strong> <pre class="prettyprint lang-php"> $random = str_random(30); </pre>

By Hardik Savani | June 29, 2016 | | 3003 Viewer | Category : Laravel
READ MORE

    Ajax Image Upload using PHP and jQuery Example from scratch

    Ajax Image Upload using PHP and jQuery Example from scratch

    Open Post

    PHP - import excel file into mysql database tutorial

    PHP - import excel file into mysql database tutorial

    Open Post

    How to implement Email Verification with Activation Code example from Scratch in Laravel 5.2 ?

    How to implement Email Verification with Activation Code example from Scratch in Laravel 5.2 ?

    Open Post

    Laravel 5 export to pdf using maatwebsite example

    Laravel 5 export to pdf using maatwebsite example

    Open Post

    Response download with file in Laravel 5.3 example

    Response download with file in Laravel 5.3 example

    Open Post

    How to create quick apache virtual host in Ubuntu?

    How to create quick apache virtual host in Ubuntu?

    Open Post