mustafaabdujalil

Experience

1,170

0 Best Reply Awards

  • Member Since 10 Months Ago
  • 0 Lessons Completed
  • 0 Favorites

24th September, 2017

mustafaabdujalil left a reply on Time • 4 hours ago

tisuchi thanks

mustafaabdujalil started a new conversation Time • 6 hours ago

how get local time by long and lat by using javascript ??

mustafaabdujalil left a reply on UTC Time • 10 hours ago

thank you so much @s4muel

mustafaabdujalil started a new conversation UTC Time • 10 hours ago

how get UTC ? thanks

23rd September, 2017

mustafaabdujalil started a new conversation Laravel Installation • 1 day ago

  • Installing laravel/laravel (v5.5.0) Loading from cache

Created project in blog Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.

Problem 1 - phpunit/phpunit 6.3.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.2.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.1.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.9 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.8 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.6 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.5 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.4 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.3 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.2 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.13 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.12 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.11 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.10 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.1 requires ext-dom * -> the requested PHP extension dom is missing from your system. - phpunit/phpunit 6.0.0 requires ext-dom * -> the requested PHP extension dom is missing from your system. - Installation request for phpunit/phpunit ~6.0 -> satisfiable by phpunit/phpunit[6.0.0, 6.0.1, 6.0.10, 6.0.11, 6.0.12, 6.0.13, 6.0.2, 6.0.3, 6.0.4, 6.0.5, 6.0.6, 6.0.7, 6.0.8, 6.0.9, 6.1.0, 6.1.1, 6.1.2, 6.1.3, 6.1.4, 6.2.0, 6.2.1, 6.2.2, 6.2.3, 6.2.4, 6.3.0].

To enable extensions, verify that they are enabled in those .ini files: - /etc/php/7.1/cli/php.ini - /etc/php/7.1/cli/conf.d/10-opcache.ini - /etc/php/7.1/cli/conf.d/10-pdo.ini - /etc/php/7.1/cli/conf.d/20-calendar.ini - /etc/php/7.1/cli/conf.d/20-ctype.ini - /etc/php/7.1/cli/conf.d/20-exif.ini - /etc/php/7.1/cli/conf.d/20-fileinfo.ini - /etc/php/7.1/cli/conf.d/20-ftp.ini - /etc/php/7.1/cli/conf.d/20-gettext.ini - /etc/php/7.1/cli/conf.d/20-iconv.ini - /etc/php/7.1/cli/conf.d/20-json.ini - /etc/php/7.1/cli/conf.d/20-mbstring.ini - /etc/php/7.1/cli/conf.d/20-phar.ini - /etc/php/7.1/cli/conf.d/20-posix.ini - /etc/php/7.1/cli/conf.d/20-readline.ini - /etc/php/7.1/cli/conf.d/20-shmop.ini - /etc/php/7.1/cli/conf.d/20-sockets.ini - /etc/php/7.1/cli/conf.d/20-sysvmsg.ini - /etc/php/7.1/cli/conf.d/20-sysvsem.ini - /etc/php/7.1/cli/conf.d/20-sysvshm.ini - /etc/php/7.1/cli/conf.d/20-tokenizer.ini You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

any help ??

20th September, 2017

mustafaabdujalil started a new conversation API • 4 days ago

how get user id in controller when logged from mobile i mean when i in web i can get user id by this Auth::user()->id; i want like this but in api ?

18th September, 2017

mustafaabdujalil started a new conversation Reset Password • 6 days ago

I want reset password by random code not email as laravel how can i do that ?

Thanks

mustafaabdujalil started a new conversation API Token • 6 days ago

i use postman to test api i use laravel registration and i add this line to create method 'api_token' => str_random(60),

but when i send request display error TokenMismatchException

17th September, 2017

mustafaabdujalil started a new conversation API • 1 week ago

This is the first time to use api i create api to use registration of laravel and login how can i test this api i mean that can i localhost:8000/api/login and send to it email and password to return json response ? i cant send email and password in route because it is post method right ?!!!!

help please

14th September, 2017

mustafaabdujalil left a reply on Upload Project On Cpanel • 1 week ago

I solved it by this line

AddHandler application/x-httpd-php71 .php .php5 .php4 .php3

Add this line at the top of .thaccess

mustafaabdujalil left a reply on Upload Project On Cpanel • 1 week ago

what is the solution ?

mustafaabdujalil left a reply on Upload Project On Cpanel • 1 week ago

@tykus I'm suing laravel 5.4 and php 5.6 but i update it on my mac to 7.1 but on server write version of php is 7.1 ??!!

mustafaabdujalil left a reply on Upload Project On Cpanel • 1 week ago


<?php

/**
 * Laravel - A PHP Framework For Web Artisans
 *
 * @package  Laravel
 * @author   Taylor Otwell <[email protected]>
 */

/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| our application. We just need to utilize it! We'll simply require it
| into the script here so that we don't have to worry about manual
| loading any of our classes later on. It feels great to relax.
|
*/

require __DIR__.'/bootstrap/autoload.php';

/*
|--------------------------------------------------------------------------
| Turn On The Lights
|--------------------------------------------------------------------------
|
| We need to illuminate PHP development, so let us turn on the lights.
| This bootstraps the framework and gets it ready for use, then it
| will load up this application so that we can run it and send
| the responses back to the browser and delight our users.
|
*/

$app = require_once __DIR__.'/bootstrap/app.php';

/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request
| through the kernel, and send the associated response back to
| the client's browser allowing them to enjoy the creative
| and wonderful application we have prepared for them.
|
*/

$kernel = $app->make(Illuminate\Contracts\Http\Kernel::class);

$response = $kernel->handle(
    $request = Illuminate\Http\Request::capture()
);

$response->send();

$kernel->terminate($request, $response);

mustafaabdujalil left a reply on Upload Project On Cpanel • 1 week ago

this is my index.php file `

‚Äč```

mustafaabdujalil started a new conversation Upload Project On Cpanel • 1 week ago

[14-Sep-2017 08:34:12 UTC] PHP Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home/dvlpshipit/public_html/index.php on line 50

this is my index.php file

mustafaabdujalil left a reply on Deploy Laravel Project On Cpanle • 1 week ago

Thanks @tisuchi and @codenex

13th September, 2017

mustafaabdujalil started a new conversation Deploy Laravel Project On Cpanle • 1 week ago

I want to deploy laravel project on cpanle but i want push updates in project by git ???

Any help please

thanks

15th June, 2017

mustafaabdujalil left a reply on Login Problem • 3 months ago

when i login with one the generate number i had create it's check password of first row only in database and login is success if the i login with the password of first row only

i hope u r understand me

thanks for your efforts @Snapey

mustafaabdujalil left a reply on Login Problem • 3 months ago

this is the function that generate random number and bcrypt it and save in password field in database

                        $teacher = new User;
                        $teacher->name = $teacher_name;
                        $teacher->level = $teacher_level;
                        $teacher->subject_name = $teacher_subject_name;
                        $teacher->year = $teacher_year;
                        $teacher->phone = $teacher_phone;
                        $teacher->school_name = $teacher_school_name;
                        $teacher->management = $teacher_management;
                        $teacher->file_id = $file_id;
                        $teacher->role_id = 2;
                        $teacher->admin_show = 1;                       
                        // check if code of student is exist or not
                        $empty_code = true;
                        while ($empty_code) {
                            # code...
                            $new_teacher_code =  rand(10000,50000000);
                            if (!in_array($new_teacher_code, $login_codes)) {
                                # code...
                                $new_teacher_code = (string)$new_teacher_code;
                                $teacher->pass_dec = $new_teacher_code;
                                $teacher->password = bcrypt($new_teacher_code);
                                $empty_code = false;
                            }
                        }

                        $teacher->save();

mustafaabdujalil left a reply on Login Problem • 3 months ago


namespace Illuminate\Foundation\Auth;

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Auth;

trait AuthenticatesUsers
{
    use RedirectsUsers, ThrottlesLogins;

    /**
     * Show the application's login form.
     *
     * @return \Illuminate\Http\Response
     */
    public function showLoginForm()
    {
        return view('auth.login');
    }

    /**
     * Handle a login request to the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse|\Illuminate\Http\Response
     */
    public function login(Request $request)
    {
        $this->validateLogin($request);

        // If the class is using the ThrottlesLogins trait, we can automatically throttle
        // the login attempts for this application. We'll key this by the username and
        // the IP address of the client making these requests into this application.
        if ($this->hasTooManyLoginAttempts($request)) {
            $this->fireLockoutEvent($request);

            return $this->sendLockoutResponse($request);
        }

        if ($this->attemptLogin($request)) {
            return $this->sendLoginResponse($request);
        }

        // If the login attempt was unsuccessful we will increment the number of attempts
        // to login and redirect the user back to the login form. Of course, when this
        // user surpasses their maximum number of attempts they will get locked out.
        $this->incrementLoginAttempts($request);

        return $this->sendFailedLoginResponse($request);
    }

    /**
     * Validate the user login request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return void
     */
    protected function validateLogin(Request $request)
    {
        $this->validate($request, [
            'password' => 'required|string',
        ]);
    }

    /**
     * Attempt to log the user into the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return bool
     */
    protected function attemptLogin(Request $request)
    {
        return $this->guard()->attempt(
            $this->credentials($request), $request->has('remember')
        );
    }

    /**
     * Get the needed authorization credentials from the request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array
     */
    protected function credentials(Request $request)
    {
        return $request->only('password');
    }

    /**
     * Send the response after the user was authenticated.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    protected function sendLoginResponse(Request $request)
    {
        $request->session()->regenerate();
        $this->clearLoginAttempts($request);

        return $this->authenticated($request, $this->guard()->user())
                ?: redirect()->intended($this->redirectPath());
    }

    /**
     * The user has been authenticated.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  mixed  $user
     * @return mixed
     */
    protected function authenticated(Request $request, $user)
    {
        //
    }

    /**
     * Get the failed login response instance.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\RedirectResponse
     */
    protected function sendFailedLoginResponse(Request $request)
    {
        $errors = [$this->username() => trans('auth.failed')];

        if ($request->expectsJson()) {
            return response()->json($errors, 422);
        }

        return redirect()->back()
            ->withInput($request->only($this->username(), 'remember'))
            ->withErrors($errors);
    }

    /**
     * Get the login username to be used by the controller.
     *
     * @return string
     */
    public function username()
    {
        return 'email';
    }

    /**
     * Log the user out of the application.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
     */
    public function logout(Request $request)
    {
        $this->guard()->logout();

        $request->session()->flush();

        $request->session()->regenerate();

        return redirect('/');
    }

    /**
     * Get the guard to be used during authentication.
     *
     * @return \Illuminate\Contracts\Auth\StatefulGuard
     */
    protected function guard()
    {
        return Auth::guard();
    }
}

mustafaabdujalil left a reply on Login Problem • 3 months ago

@Snapey Hello sir it's AuthenticationUsers controller that responsible for login as you know I changed login fnction to login with password only

14th June, 2017

mustafaabdujalil started a new conversation Login Problem • 3 months ago

Hello every body In my app i make user login with code now email and password i and i changed that in auth controller i generate random numbers with rand()method then i bcrypt this number and store it in password field in database but when i login with one of codes that i generated app doesn't login and redirect to login page ??

any help ?

25th May, 2017

mustafaabdujalil left a reply on Pjax • 3 months ago

$(document).on('ready pjax:success', function () {

$("#add").on('click',function(){
    var element = $('#forms_container').find(".new_form").clone();
    $('.small_form').append(element);
    console.log(element);
    var parent_id = $(this).attr('data-action');
    var link = "/initDomain";
    if(parent_id != null){
        link = "/initDomain/".concat(parent_id);
    }

    $.ajax({
        url: link,
        method: 'get',
        success: function (data) {
            element.find('input:hidden').val(data['domain_id']);
        }
    });
});

$('.small_form').on('click', '.remove', function() {
    $(this).parent().remove();
});

});

when pjax run and content change i click on button that has id="add" i do clone to form and append it but it's not working unless do reload to page ??

mustafaabdujalil started a new conversation Pjax • 3 months ago

Hello everyone, I'm using pjax and when click on button content change but to javascript run i should reload page ? can anyone help me ?

thanks,

9th May, 2017

mustafaabdujalil started a new conversation FatalThrowableError • 4 months ago

after installing intervention library i tried to do php artisan ser but occure this error ?? PLEASE I NEED HELP !!! [Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected 'Laravel' (T_STRING), expecting ']'

31st March, 2017

mustafaabdujalil started a new conversation Recommendation • 5 months ago

how can i recommend something to my users in my app ? thanks

21st March, 2017

mustafaabdujalil started a new conversation Voyager • 6 months ago

how can i make voyager login in another model instead of User model and it's table users ?

20th March, 2017

mustafaabdujalil started a new conversation Multi Language • 6 months ago

how can i make my app in many language ?

thanks,

12th March, 2017

mustafaabdujalil left a reply on Database • 6 months ago

Thank u @SaeedPrez

mustafaabdujalil left a reply on Update Data • 6 months ago

@SaeedPrez

play this with ........... -_-

mustafaabdujalil left a reply on Update Data • 6 months ago

@jlrdw

there is many methods to do that but i want the best then there is any person knows ever thing and we should have error to learn the right

if you don't have a good answer don't reply

i can curse u but i'm polite

mustafaabdujalil started a new conversation Database • 6 months ago

I can use both good but i want to know what is the Difference between Query bulider and Eloquent ? thanks

11th March, 2017

mustafaabdujalil started a new conversation Update Data • 6 months ago

if i have 10 fields in table and user want to update 5 only but i don't know which 5 he wanted to update how make there 5 update in the database and other 5 take same old value ?

20th November, 2016

mustafaabdujalil left a reply on Database • 10 months ago

u r right :) thank u so much dear

mustafaabdujalil started a new conversation Database • 10 months ago

i have array of n number, i want to get data from database where(rating,array)

example if i have array test=array(1,2,3), i want get data that it's rating=1 and 2 and 3 ??

it's my query but get only first element

$search_comps=Company::where([['name','like','%'.$name.'%'],['region_id',$location],['rating',$order]])

where array = $order

thanks, :)

19th November, 2016

mustafaabdujalil left a reply on Search • 10 months ago

thank you so much :)

mustafaabdujalil started a new conversation Search • 10 months ago

i have a search box that the user will search about companies and the company has name and description i want find all companies that it's name or description has any word of the string in search box example: user write that in search box "company of games" i want get from database each company it's name or description contains any word of this " company or games "

thanks

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.