Ahmad00100

Ahmad00100

Member Since 1 Month Ago

Experience Points
200
Total
Experience

4,800 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
1
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected]asts.com with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
200 XP
Sep
24
1 month ago
Activity icon

Started a new Conversation Sending Data From Laravel To Node Js Server In Laravel Application

problem with receiving data from the application form to node js server, the data don't apperea my from. in blade.php

        var subject = $('#subject').val().trim();
        var email = $('#to-Email').val().trim();
        var body = $('#Email-body').val().trim();

        const data = {
            subject, email, body
        };

        $.post('/mail', data, () => {
            console.log('Server receive data');
        });
    });

my node js server.js

var http = require('http');
var express = require('express');
// var js = require('./send_mail');
var app = express();
var path = require('path');

app.use(express.urlencoded({
    extended: false
}));
app.use(express.json());
app.get('http://127.0.0.1:8000/en/admin/offer');

app.post('/mail', (req, res) => {

    console.log(req.body);
});

app.listen('8000');

console.log('Your node server start successfully....');

exports = module.exports = app;
Sep
20
1 month ago
Activity icon

Replied to Redirect Refresh

Header("refresh:2")

Sep
17
1 month ago
Activity icon

Replied to Catch TooManyRequestsHttpException

<?php

namespace App\Exceptions;

use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
use Throwable;
use Illuminate\Support\Facades\Lang;
use Symfony\component\HttpKernel\Exception\NotFoundHttpException;
use Symfony\Component\Routing\Exception\MethodNotAllowedException;
use Symfony\Component\HttpKernel\Exception\TooManyRequestsHttpException;
use Symfony\Component\CssSelector\Exception\InternalErrorException;
use Illuminate\Database\QueryException;

class Handler extends ExceptionHandler
{
    /**
     * A list of the exception types that are not reported.
     *
     * @var array
     */
    protected $dontReport = [
        //
    ];

    /**
     * A list of the inputs that are never flashed for validation exceptions.
     *
     * @var array
     */
    protected $dontFlash = [
        'password',
        'password_confirmation',
    ];

    /**
     * Report or log an exception.
     *
     * @param  \Throwable  $exception
     * @return void
     *
     * @throws \Exception
     */
    public function report(Throwable $exception)
    {
        parent::report($exception);
    }

    /**
     * Render an exception into an HTTP response.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Throwable  $exception
     * @return \Symfony\Component\HttpFoundation\Response
     *
     * @throws \Throwable
     */
    public function render($request, Throwable $exception)
    {
        if ($exception instanceof NotFoundHttpException) {
            return response()->view('errors.404');
        }
        if ($exception instanceof MethodNotAllowedException) {
            return response()->view('errors.405');
        }
        if ($exception instanceof TooManyRequestsHttpException) {
            return redirect()->back()->withErrors(['throttle' => 'Too many login attempts. Please try again in ']);
        }
        if ($exception instanceof InternalErrorException) {
            return response()->view('errors.500');
        }
        if ($exception instanceof QueryException) {
            // dd($exception->getMessage());
            return response()->view('errors.509');
        } elseif ($exception instanceof \PDOException) {
            dd($exception->getMessage());
            //return response()->view('custom_view');
        }

        return parent::render($request, $exception);
    }
}
Sep
16
1 month ago
Activity icon

Replied to After Three Login Failed Attempts I Need To Lock The User Account.

    public function __construct()
    {
        $this->middleware('throttle:3,1')->only('login'); // 3(maxAttempts).  // 1(decayMinutes)
    }
Activity icon

Replied to Customize Laravel Login Throttling 5.4

public function __construct() { $this->middleware('throttle:3,1')->only('login'); }

Activity icon

Replied to How To Store Associative Array In Session Variable

please how can i get id alone , and name alone ??