Category

Laravel

Category

I am using this function You may use it like something like bellow $code = $this->generateRandomString(6);// it should be dynamic and unique public function generateRandomString($length = 20) { $characters = ‘0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ’; $charactersLength = strlen($characters); $randomString = ”; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, $charactersLength – 1)]; } return $randomString; }

Django: Advantages of Using Django 1. Security Users of Django will be impressed with the level of protection from all possible security-related errors like clickjacking, SQL injections, cross-site scripting, and forgery. 2. Full-featured Django goes well with lots of extra features, which main aim is to help with sitemaps, user authentication, and content administration. The following bonuses assist implementation in every step of web development.Web development 3. Scalability Django is the best choice for dealing with…

Step 1: Install the laravel project using the command line. composer create-project –prefer-dist laravel/laravel laravel7filter Step 2: Open project in code and use vs code terminal. Step 3: find .env file in root directory than setup database configuration. DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=database_name DB_USERNAME=database_username DB_PASSWORD=database_password Step 4 : Install Yajra Datatable composer require yajra/laravel-datatables-oracle Step 5: After that you need to set providers and alias. config/app.php ….. ‘providers’ => [ …. Yajra\DataTables\DataTablesServiceProvider::class, ] ‘aliases’ => [ ….…

1. SecurityUsers of Laravel will be impressed with the level of protection from all possible security-related errors like clickjacking, SQL injections, cross-site scripting, and forgery. 2. Support of MVC Such separation enables Html Layout Designers (less costly staff) to change the appearance of a web page easily without interacting with Developers (more expensive stuff). Possible bug fixes and feature requests would be done by developers faster (read as “cost-effectively”) if all programming code of the…

Adding Toastr Notifications to your Laravel App However you decide to include it in your project you will then need to add the location to the 2 files in the <head> tag of your master layout file like so: <script src=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.js”></script> <link rel=”stylesheet” type=”text/css” href=”//cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.css”> Then whenever you need to redirect to a page and pass a notification you can pass the redirect a notification array like so: $notification = array( ‘message’ => ‘I am a successful message!’,…