mustafaabdujalil

Experience

4,640

2 Best Reply Awards

  • Member Since 1 Year Ago
  • 0 Lessons Completed
  • 0 Favorites

28th December, 2017

mustafaabdujalil started a new conversation Public APIs • 3 weeks ago

how can i make auth for user in public APIs , i use JWT in private APIs ?

mustafaabdujalil started a new conversation Composer Update • 3 weeks ago

I published my laravel app on cpanel and i want to install package on it by run command or composer update how can i do that but i cant access ssh of cpanel ??

thanks in advanced

26th December, 2017

mustafaabdujalil started a new conversation Error Page • 3 weeks ago

How can redirect user to home page if there is error in insert or and error with database instead of display red page with error name i want redirect user to home page ? thanks

20th December, 2017

mustafaabdujalil started a new conversation Public APIs • 1 month ago

What is public APIs and How can i generate it in laravel any article or simple examples ?

thank you in advanced

19th December, 2017

mustafaabdujalil left a reply on Cron Job • 1 month ago

thank you for your efforts my friend

mustafaabdujalil left a reply on Cron Job • 1 month ago

Command file


<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
use App\ApplicationSetting;
use App\TagsPaymentBalance;
use App\User;
use Carbon\Carbon;

class addBalanceMonthly extends Command
{
    /**
     * The name and signature of the console command.
     *
     * @var string
     */
    protected $signature = 'addBalanceMonthly:addBalance';

    /**
     * The console command description.
     *
     * @var string
     */
    protected $description = 'Add Balance for users monthly';

    /**
     * Create a new command instance.
     *
     * @return void
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * Execute the console command.
     *
     * @return mixed
     */
    public function handle()
    {
        //
        $users = User::where('user_type',3)->get();
        $amount = ApplicationSetting::first();
        
        foreach($users as $user){
            
            TagsPaymentBalance::create([
                 'user_id' => $user->id,
                 'date_added' => Carbon::now('America/New_York'),
                 'total_tags_added' =>$amount->monthly_points,
                 'current_tags_left' =>$amount->monthly_points,
                 'expiry_date' => date('Y-m-d h:i', strtotime("+1 months", strtotime(Carbon::now('America/New_York')))),
                 'entry_type' =>1,
             ]);            
        
            
        }

        
    }
}

?>



mustafaabdujalil left a reply on Cron Job • 1 month ago

mustafaabdujalil started a new conversation Cron Job • 1 month ago

How can i run cron job on cpanel in my laravel app ? thanks in advanced

18th December, 2017

mustafaabdujalil started a new conversation Public APIs • 1 month ago

What is public APIs and How can i generate it in laravel any article or simple examples ?

thank you in advanced

16th December, 2017

mustafaabdujalil left a reply on Convert Json To Array • 1 month ago

yes i used it but still return first answer

mustafaabdujalil started a new conversation Convert Json To Array • 1 month ago

laravel return array of objects how can i convert this array to array of arrays ? this is example


{  
   "data":[  
      {  
         "id":93,
         "created_at":"2017-12-12 07:47:34"
      },
      {  
         "id":78,
         "created_at":"2017-12-11 06:51:51"
      },
   ]
}

to 

{  
   "data":[  
      [  
         "id":93,
         "created_at":"2017-12-12 07:47:34"
      ],
      [  
         "id":78,
         "created_at":"2017-12-11 06:51:51"
      ],
   ]
}

mustafaabdujalil started a new conversation Jquery Datatable With Laravel • 1 month ago

How can i use server side to display data in jquery datatable due to i have i a lot of data in database ?!

15th December, 2017

mustafaabdujalil started a new conversation Install Pacakge In Laravel App On Cpanel • 1 month ago

I have laravel app on cpanel How can i install pacakge on my app by composer ?!!!

10th December, 2017

mustafaabdujalil left a reply on IDE For Laravel • 1 month ago

thanks for all :)

mustafaabdujalil started a new conversation IDE For Laravel • 1 month ago

what is the best IDE for laravel except PHPStorm because it's paid ?

if sublime, netbeans and atom has package for laravel to help me in coding as phpstorm

thanks in advanced

6th December, 2017

mustafaabdujalil left a reply on Update Database • 1 month ago

i know this solution but i thought if there is another solution but overall thank you :) @Nash

mustafaabdujalil started a new conversation Update Database • 1 month ago

how can i update some tables in database with each request for user ?

example : if i want update last seen for user with each request he do it

thanks

3rd December, 2017

mustafaabdujalil left a reply on Swagger With Laravel • 1 month ago

thank you

mustafaabdujalil started a new conversation Swagger With Laravel • 1 month ago

How can i use Swagger with laravel ?!!

any tutorial or article ?

Thanks

28th November, 2017

mustafaabdujalil left a reply on Remove Duplicated Rows • 1 month ago

MySQL @gregrobson

27th November, 2017

mustafaabdujalil started a new conversation Remove Duplicated Rows • 1 month ago

I have more than row with the same data but different in id (because it's unique) Example : columns : id name age address first row : 1 ahmed 22 ba7ry second row : 2 ahmed 22 ba7ry

how get only first row from duplicated ???

thanks

22nd November, 2017

mustafaabdujalil started a new conversation Distinct Duplicated • 2 months ago

How distinct the query from get the duplicated data ? example : if i have two rows with the same data in all fields except id exactly is different

thanks

16th November, 2017

mustafaabdujalil left a reply on Redirect To Another Url Or Website • 2 months ago

from @tykus from controller ?

mustafaabdujalil started a new conversation Redirect To Another Url Or Website • 2 months ago

Redirect to another url or website ?!!

13th November, 2017

mustafaabdujalil started a new conversation Voyager • 2 months ago

How can i use voyager with existing database that has table users with different fields ??

thanks

7th November, 2017

mustafaabdujalil started a new conversation Laravel Validation • 2 months ago

I create ajax request and do laravel validation for parameters of this request how can i return validation errors to ajax as a json response ? Thanks

5th November, 2017

mustafaabdujalil started a new conversation Reset Password • 2 months ago

I'm using phpmailer to send email how can i update in reset password method in laravel to write it by phpmailer ??

30th October, 2017

mustafaabdujalil started a new conversation Merging • 2 months ago

I have 2 queries from different 2 tables (with different fields) i want merge them and sort by timestamp ?!!!!

this is code

$location_ids = LocationAddress::where('created_by_user_id',Auth::user()->id)->orWhere('user_email',Auth::user()->email)->distinct()->pluck('id');
    
$package_ids = Package::whereIn('reciever_id',$location_ids)->orWhereIn('sender_id',$location_ids)->pluck('id');
            
$package_notifications = PackageUpdate::whereIn('package_id',$package_ids)->where('view_status',1)->get();
            
$payment_notifications = TagsPaymentBalance::where('user_id',Auth::user()->id)->where('view_status',1)->where('expiry_date','>',$today)->get();

i want merge $package_notifications and $payment_notifications ??

mustafaabdujalil started a new conversation Union • 2 months ago

when i created union between two tables give me this error Method getBindings does not exist. ?

29th October, 2017

mustafaabdujalil left a reply on Sorting • 2 months ago

give me this error Method getBindings does not exist. ??

mustafaabdujalil left a reply on Sorting • 2 months ago

thank you all :)

mustafaabdujalil started a new conversation Sorting • 2 months ago

i merge two query and i want sort them by created_at field ??

26th October, 2017

mustafaabdujalil started a new conversation PHPMailer • 2 months ago

How can i use PHPMailer to send email if any one used it before i whop to help me ?

https://github.com/PHPMailer/PHPMailer/

Thanks

23rd October, 2017

mustafaabdujalil left a reply on Send Mail • 2 months ago

thanks @Snapey

mustafaabdujalil started a new conversation Send Mail • 2 months ago

how can i send mail to any user i don't use mailtrip i don't want to test sending email examples : if one of user has [email protected] and another one hase [email protected] how i can send email to each one with different stp ?!!!

Help please Thanks

21st October, 2017

mustafaabdujalil left a reply on Store File • 3 months ago

I find the solution ..... i should change the local root in file system to base_path() because i put the files that was in public folder out public it

mustafaabdujalil left a reply on Uploading An Image Via A Form • 3 months ago

The doc way is the best and easier way to store and get the file from public

to store $path = $request->file('here name of input of file')->store('file name in public directory');

to get file in view {{asset('$path')}}

mustafaabdujalil left a reply on Store File • 3 months ago

the same problem

mustafaabdujalil started a new conversation Store File • 3 months ago

I store image on my laravel app the path is returned correct but the image does not store in folder

on local store very good but on server does not store ?!! this is my code

    public function editPersonalInfoWeb(Request $request)
    {
        $user_id = Auth::user()->id;
      //  return $request->imageProfile;
        if($request->imageProfile != ''){
                $image_name = $request->file('imageProfile')->store('/images/profileImages');
    // return $image_name;
        
        }else{
            $image_name = User::where('id',$user_id)->value('image_url');
                    //   return "bbb";

        }
        // dd($image_name);
        $updating = User::where('id',$user_id)->update([
            'full_name' => $request->full_name,
            'mobile' => $request->mobile,
            'company_name' => $request->company_name,
            'email' => $request->email,
            'image_url' => $image_name,
            'units_usa_or_metric' => $request->unit,
        ]);

        return back();
    }

any help

mustafaabdujalil started a new conversation Scan Barcode • 3 months ago

i want to scan barcode by javascript i tried to use quagga but i dont know use it with laravel ??

any help

19th October, 2017

mustafaabdujalil started a new conversation Cpanel • 3 months ago

how can i install package in laravel app on cpanel ?

18th October, 2017

mustafaabdujalil left a reply on IP To Location • 3 months ago

thanks

mustafaabdujalil started a new conversation IP To Location • 3 months ago

how get location (long and lati) by user ip ??? thanks

17th October, 2017

mustafaabdujalil started a new conversation Quagga • 3 months ago

How use Quagga for scan barcode with laravel ??!!!! i don't understand doc help please

16th October, 2017

mustafaabdujalil started a new conversation When I Run Stripe Functions This Error Display CURL Error 6: Could Not Resolve Host: Api.payment.com ? • 3 months ago

when i run stripe functions this error display cURL error 6: Could not resolve host: api.payment.com ?

10th October, 2017

mustafaabdujalil left a reply on Template Balde To PDF • 3 months ago

no

mustafaabdujalil started a new conversation Template Balde To PDF • 3 months ago

I want to convert template blade to pdf then download it i use dompdf but i have this error

No block-level parent found. Not good.

help please

9th October, 2017

mustafaabdujalil started a new conversation Convert View To Pdf File • 3 months ago

how can i convert view to pdf then store it in public file.pdf ??

help please

mustafaabdujalil left a reply on BARCODE • 3 months ago

thanks for all :)

Edit Your Profile
Update

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