GithubHelp home page GithubHelp logo

pinfbet's Introduction

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as:

Laravel is accessible, powerful, and provides tools required for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework.

If you don't feel like reading, Laracasts can help. Laracasts contains over 1500 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page.

Premium Partners

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

pinfbet's People

Contributors

christianpf avatar jordigm avatar pablop95 avatar sheratanalde avatar

Stargazers

Roman avatar  avatar  avatar

Watchers

 avatar  avatar

pinfbet's Issues

Manual para incluir un Captchar en la aplicación

He hecho una busqueda rapida y he encontrado, pensaba que sería algo mas simple(pero eso en el caso que usemos el de Google), pero por evitar tener que configurar alguno de nosotros la cuenta creo que es mejor hacer esto. Lo dejo aquí para que @christianpf cuando pueda lo implemente. Hay que estar atentos a cuando lo haga ya que como podeis ver se hace una instalación de una serie de paquetes por parte de composer(recuerdanos que tenemos que actualizar tras hacer el pull donde hayas hecho los cambios Christian.

Laravel 8 Captcha Tutorial – Add Captcha In Forms

Laravel 8 captcha tutorial. In this tutorial, we will show you how to add a captcha validation with laravel 8 forms.

The captcha provides security challenge on forms to prevent comment spamming, form spamming.
Laravel 8 Captcha – Add Captcha Validation in Form

Step 1 – Download Laravel 8 Application
Step 2 – Setup Database with App
Step 3 – Install Captcha Package
Step 4 – Register Captcha Package
Step 5 – Captcha Configuration
Step 6 – Create Form Routes
Step 7 – Create Form Controller By Artisan Command
Step 8 – Create Form Blade File
Step 9 – Run Development Server

Step 1 – Download Laravel 8 Application

First of all download or install laravel 8 new setup. So, open terminal and type the following command to install new laravel 8 app into your machine:

composer create-project --prefer-dist laravel/laravel FormValidation

Step 2 – Setup Database with App

In this step, setup database with your downloded/installed laravel 8 app. So, you need to find .env file and setup database details as following:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database-name
DB_USERNAME=database-user-name
DB_PASSWORD=database-password

Step 3 – Install Captcha Package

In this step, open again your command prompt. And run the following command on it. To install captcha package:

composer require mews/captcha

Step 4 – Register Captcha Package

In this step, registered this package in laravel application. So, Open providers/config/app.php file and register the captcha service provider and aliases.

'providers' => [
...
...
...
Mews\Captcha\CaptchaServiceProvider::class,
]

'aliases' => [
...
...
...
'Captcha' => Mews\Captcha\Facades\Captcha::class,

Step 5 – Captcha Configuration

In this step, open config/captcha.php file. And in this file you can enable or disable settings based on your requirement:

return [
'default' => [
'length' => 5,
'width' => 120,
'height' => 36,
'quality' => 90,
'math' => true, //Enable Math Captcha
'expire' => 60, //Stateless/API captcha expiration
],
// ...
];

Step 6 – Create Routes

In this step, open web.php file from routes direcotry. And update the following routes into web.php file:

use App\Http\Controllers\CaptchaValidationController;

Route::get('contact-form-captcha', [CaptchaValidationController::class, 'index']);
Route::post('captcha-validation', [CaptchaValidationController::class, 'capthcaFormValidate']);
Route::get('reload-captcha', [CaptchaValidationController::class, 'reloadCaptcha']);

Step 7 – Create Form Controller By Artisan Command

In this step, run the following command on command prompt to create controller file:

php artisan make:controller CaptchaValidationController

After that, go to app/http/controllers and open CaptchaValidationController.php file. And update the following code into it:

validate([ 'name' => 'required', 'email' => 'required|email', 'message' => 'required', 'captcha' => 'required|captcha' ]); } public function reloadCaptcha() { return response()->json(['captcha'=> captcha_img()]); } }

Step 8 – Create Blade File

Now, create blade view file to display form with captcha challenge and submit to database. So, Go to resources/views and create form-with-captcha.blade.php and update the following code into it:

<title>Laravel 8 Form Captcha Validation</title>
@if(session('status'))
{{ session('status') }}
@endif

Laravel 8 Add Captcha in Form For Validation

@csrf
Name @error('name')
{{ $message }}
@enderror
Email @error('email')
{{ $message }}
@enderror
Message <textarea name="message" class="@error('message') is-invalid @enderror form-control"></textarea> @error('message')
{{ $message }}
@enderror
{!! captcha_img() !!}
Submit
<script type="text/javascript"> $('#reload').click(function () { $.ajax({ type: 'GET', url: 'reload-captcha', success: function (data) { $(".captcha span").html(data.captcha); } }); }); </script>

The following below code will display validation error message on blade view file:

@error('name')

{{ $message }}
@enderror

Step 9 – Run Development Server

Last step, open command prompt and run the following command to start developement server:

php artisan serve

Then open your browser and hit the following url on it:

http://127.0.0.1:8000/contact-form-captcha

Fuente: https://www.tutsmake.com/laravel-8-captcha-tutorial-add-captcha-in-forms/

Ver funcionalidades

Ver las posibles funcionalidades que existen entre la herramienta que haya para pasar el PDF a XML y Laravel

Monetización

Hablamos que se le preguntaría al profesor, pero dejo por aquí la propuesta para que no se nos olvide.

En definitiva la monetización, si no dice lo contrario ahora el profesor dijo que no quería ganar dinero con las apuestas, pero si quiere ganarlo de otra forma, por lo que se me ocurrió que podía ser por medio de bloques de publicidad, en los cuales se anuncien casas de apuestas, captando en el sentido que si en el juego les va bien ¿por que no probar en la vida real con dinero?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.