farooq

farooq

Member Since 2 Months Ago

Experience Points 880
Experience Level 1

4,120 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 0
Lessons
Completed
Best Reply Awards 1
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    Laracasts Evangelist

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

  • Chatty Cathy Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

13 May
1 week ago

farooq left a reply on Laravel Merge

Get the posted value first and store it as a variable id, Then try to merge the variable id with Auth::user()->id .

farooq started a new conversation Pagination Not Working After Posting A Value To Controller And Gets Back

I have a page with post method . I already included pagination with that page . So it works perfectly , But after post , I'm sending the pagination to same page, but it shows only one page. When I click on next page it shows "Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message" . I added my controller here .


        $id = $request->input('id');
        $vendor_email = $request->input('vendorselect');
        $order_id = $request->input('order_id');
    // Some calculations here
    $users = Vendors::all();
        //$users = Vendors::paginate(5);
        $orders = Orders::orderBy('created_at', 'desc')->paginate(6);
        $success = "Updated Successfully";
        return \View::make('admin.Assign-Vendor')->with(compact('orders','users','success'));

    }
26 Mar
1 month ago

farooq started a new conversation Using FFMpeg To Get Video Duration : Class 'Pbmedia\LaravelFFMpeg\FFMpegServiceProvider\FFMpeg' Not Found

Hi, I'm building a web application to upload a video and store it in cloud,. I want to get the duration of uploaded video . So I tried to install laravel/ FFMpeg package . After doing all the steps , ., I'm getting this error . Class 'Pbmedia\LaravelFFMpeg\FFMpegServiceProvider\FFMpeg' not found

My controller code ::

<?php 
namespace App\Http\Controllers;
use Auth;
use Illuminate\Http\Request;
use DB;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Storage;
use App\Providers\DropboxServiceProvider;
use Dropbox\Client;
use Dropbox\WriteMode;
use Pbmedia\LaravelFFMpeg\FFMpegServiceProvider as FFMpeg; 
//use Pbmedia\LaravelFFMpeg\FFMpegFacade as FFMpeg;
//use FFMpeg;

class FileController extends Controller 
{
   public function FileUpload(Request $request)
   {
    $file = $request->file('file');
    $note = $request->input('note');
    //$request->file('file')->store('assets');
    if($file)
    { 
    
         //Storage::disk('local')->put($file, $file);
        //$file = $request->input('file')->store('1.png');
         $file1 = Storage::disk('local')->put('' ,$request->file) ;
         $filename = $file->getClientOriginalName();

         Storage::move(''.$file1, $filename); // keep the same folder to just rename 


        
         $file = FFMPEG\FFMpeg::open($filename);
         $durationInSeconds = $file->getDurationInSeconds();
         return view('users/order-status')->with('file',$durationInSeconds);
    }
    else
    {
        $file ="not found";
    }
    return view('users/order-status')->with('file',$file);
   }

   public function dropboxFileUpload(Request $request)
    {


        $file = $request->input('file');
        //Storage::disk('dropbox')->put('file.txt', 'Hello laravel ');
        //$path = $request->input('file')->store('audio');
        Storage::disk('local')->put($file, 'Contents');
        echo asset('storage/"$file"');
        //$file = "/storage/app/".$file. "";

        //dd($path);
        //$file = dd($path);
    return view('users/order-status')->with('file',$file);

    }
}

thanks

23 Mar
2 months ago

farooq left a reply on DropboxServiceProvider.php Throws Undefined Index In $client Line .

@ETTORE - Thank you ettore . It worked . Thanks for the help!! . And How can I see the stored file . Basically where it is stored?

farooq started a new conversation DropboxServiceProvider.php Throws Undefined Index In $client Line .

Here's my code from DropboxServiceProver.php I replaced the original code in token by replacing my token :

            <?php
namespace App\Providers;

use Storage;
use League\Flysystem\Filesystem;
use Illuminate\Support\ServiceProvider;
use Spatie\Dropbox\Client as DropboxClient;
use Spatie\FlysystemDropbox\DropboxAdapter;

class DropboxServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap the application services.
     *
     * @return void
     */
    public function boot()
    {
         Storage::extend('dropbox', function ($app, $config) {
            $client = new DropboxClient(
                $config['authorizationToken']
            );

            return new Filesystem(new DropboxAdapter($client));
        });
    }

    /**
     * Register the application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }
}

It returns error as :: Undefined index: ('authorizationToken').

My controller :


public function dropboxFileUpload(Request $request)
    {


        $file = $request->input('file');
        Storage::disk('dropbox')->put('file.txt', 'Hello laravel ');


    return view('users/order-status')->with('file',$file);

    }

How to solve this?

farooq left a reply on DropboxServiceProvider.php Throws Undefined Index In $client Line .

@ETTORE - I did .

'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
        ],

        'dropbox' => [
        'driver' => 'dropbox',
        'app_secret' => env('this_is_app_secret'),
        'token' => env('This_is_token'),
    ],

    ],
22 Mar
2 months ago

farooq left a reply on DropboxServiceProvider.php Throws Undefined Index In $client Line .

@ETTORE - Tried . Still having error :

Undefined index: Token

farooq left a reply on DropboxServiceProvider.php Throws Undefined Index In $client Line .

@ETTORE - However I added the dropbox in filesystems.php too :

'dropbox' => [
        'driver' => 'dropbox',
        'app_secret' => env('xwylhl1ho4u02ia'),
        'token' => env('-cCZhqTAqjAAAAAAAAAIIsqki9W5PVEG3eBQqcCKzJ5lqyjfqS-JH6S2xGMUEgpE'),
    ],

farooq left a reply on DropboxServiceProvider.php Throws Undefined Index In $client Line .

@ETTORE - Yeah!! Check the code . Do I need to replace 'authorizationToken' with my auth token created by dropbox?

farooq started a new conversation DropboxServiceProvider.php Throws Undefined Index In $config Line .

Here's my code from DropboxServiceProver.php I replaced the original code in token by replacing my token :

public function boot() { Storage::extend('dropbox', function ($app, $config) { $client = new DropboxClient( $config[my-secret-token'] );

        return new Filesystem(new DropboxAdapter($client));
    });
}

It returns error as :: Undefined index: ('my-secret-token').

How to solve this?

16 Mar
2 months ago
15 Mar
2 months ago

farooq started a new conversation Unable To Verify Email, Password Using Auth::attempt

if (Auth::attempt(['email' => $email, 'pass' => $pass])) { $a = $users; return view('users/dashboard')->with('a',$a);

I do have the datas in table . But it simply returns , "These credentials do not match our records."

Any reason ?