me10071990

me10071990

Software Engineer at Learner

Member Since 1 Year Ago

Budapest Hungary

Experience Points
4,690
Total
Experience

310 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
4
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] 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
4,690 XP
Jul
26
1 week ago
Activity icon

Replied to ErrorException Ldap_search(): Partial Search Results Returned: Sizelimit Exceeded

@bobbybouwmann thank you for support, however i gone through it and now still the same issue, I am just routing to http://127.0.0.1:8000/home page without login and for import i used command but why getting this issue still looking for solution.

Activity icon

Started a new Conversation ErrorException Ldap_search(): Partial Search Results Returned: Sizelimit Exceeded

Good morning all,

    php  :7.2.5
    adldap2/adldap2-laravel  :6.1
    laravel/framework :7.0,

I am trying to synchronized more than 1000 users data from OpenLDAP server, how to fix this error

    ErrorException  ldap_search(): Partial search results returned: Sizelimit exceeded

   at C:\xampp\htdocs\adminless\vendor\adldap2\adldap2\src\Connections\Ldap.php:286
   * {@inheritdoc}
   */
   public function search($dn, $filter, array $fields, $onlyAttributes = false, $size = 0, $time = 0)
   {
     return ldap_search($this->connection, $dn, $filter, $fields, $onlyAttributes, $size, $time);
   }

 
   C:\xampp\htdocs\adminless\vendor\adldap2\adldap2\src\Connections\Ldap.php:286
   ldap_search("dc=example,dc=xxx,dc=in", "(&(objectclass=effe) 
  (objectclass=
  fe)(uid=*))")

   C:\xampp\htdocs\adminless\vendor\adldap2\adldap2\src\Query\Builder.php:474
   Adldap\Connections\Ldap::search("dc=example,dc=xxx,dc=in", "(& 
   (objectclass=effe)(object
  class=fe)(uid=*))")

Thank you all.

Jul
15
2 weeks ago
Activity icon

Started a new Conversation Getting Error Adldap\Auth\BindException : Can't Contact LDAP Server

Hi all, I am reposting the issue again as in previous, i didn't get any response. I completed with code and trying to run the php artisan adldap:import, when running this code then getting error :

Adldap\Auth\BindException : Can't contact LDAP server at

C:\xampp\htdocs\Internal_Search_Ldap\vendor\adldap2\adldap2\src\Auth\Guard.php:107

Exception trace:

1 Exception::("Can't contact LDAP server") C:\xampp\htdocs\Internal_Search_Ldap\vendor\adldap2\adldap2\src\Auth\Guard.php:102

2 Adldap\Auth\Guard::bind("username", "secret") C:\xampp\htdocs\Internal_Search_Ldap\vendor\adldap2\adldap2\src\Auth\Guard.php:119

In login Controller

class LoginController extends Controller { use AuthenticatesUsers;

protected $redirectTo = RouteServiceProvider::HOME;

public function __construct()
{
    $this->middleware('guest')->except('logout');
}

public function showLoginForm()
{
    return view('auth/login');
}

protected function login(Request $request)
{
    $username = $request->email;
    $password = $request->password;



    $server = '52.87.186.93'; 
    $domain = 'ldap.forumsys.com';
    $port = 389;
    $port_ssl = 686;

    echo $username.$domain ;
    echo "</br>" ;
    $connection = ldap_connect($server, $port);
    if (!$connection) {
        exit('Connection failed');
    }

    // Help talking to AD
    ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3);
    ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);

    ldap_set_option($connection, LDAP_OPT_NETWORK_TIMEOUT, 10);
    ldap_set_option($connection, LDAP_OPT_TIMELIMIT, 10);
    ldap_set_option($connection, LDAP_OPT_TIMEOUT, 10);

    $bind = @ldap_bind($connection, $username.$domain, $password);
    if (!$bind) {
        exit('Binding Failed');
    }

    $results = ldap_search($connection, '// dc compont', "(cn=*)");

    $entries = ldap_get_entries($connection, $results);

    if($entries){
        echo $entries["count"]." entries returned\n";

    }

    $credentials = $request->only('email', 'password');
    if (Auth::attempt($credentials)) {
        echo Auth::id() ;
        // return redirect('/home');

        for ($i=0; $i<$entries["count"]; $i++) {

            print_r ($entries[$i]["cn"][0]) ;
            echo "</br>";
        }

    }else{
        echo "failed" ;
    }

    ldap_close($connection);

}

}

and my ldap.php

Jul
14
3 weeks ago
Activity icon

Replied to Read Data From LDAP Server In Laravel

Thank you @bugsysha , i done with some code in controller however nothing is showing .

class LoginController extends Controller { use AuthenticatesUsers;

protected $redirectTo = RouteServiceProvider::HOME;

public function __construct()
{
    $this->middleware('guest')->except('logout');
}

public function showLoginForm()
{
    return view('auth/login');
}

protected function login(Request $request)
{
    $username = $request->email;
    $password = $request->password;



    $server = '23.20.46.132  '; //ip like ldap://192.168.1.1
    $domain = 'ldap.forumsys.com  '; //domain name on ldap
    $port = 389;
    $port_ssl = 686;

    echo $username.$domain ;
    echo "</br>" ;

    $connection = ldap_connect($server, $port);
    if (!$connection) {
        exit('Connection failed');
    }

    // Help talking to AD
    ldap_set_option($connection, LDAP_OPT_PROTOCOL_VERSION, 3);
    ldap_set_option($connection, LDAP_OPT_REFERRALS, 0);

    ldap_set_option($connection, LDAP_OPT_NETWORK_TIMEOUT, 10);
    ldap_set_option($connection, LDAP_OPT_TIMELIMIT, 10);
    ldap_set_option($connection, LDAP_OPT_TIMEOUT, 10);

    $bind = @ldap_bind($connection, $username.$domain, $password);
    if (!$bind) {
        exit('Binding Failed');
    }

    $results = ldap_search($connection, '// dc compont', "(cn=*)");

    $entries = ldap_get_entries($connection, $results);

    if($entries){
        echo $entries["count"]." entries returned\n";

    }

    $credentials = $request->only('email', 'password');
    if (Auth::attempt($credentials)) {
        echo Auth::id() ;
        // return redirect('/home');

        for ($i=0; $i<$entries["count"]; $i++) {

            print_r ($entries[$i]["cn"][0]) ;
            echo "</br>";
        }


    }else{
        echo "failed" ;
    }


    ldap_close($connection);

}

}

Thank you..

Jul
12
3 weeks ago
Activity icon

Replied to Where To Variable And Hostname If I Want To Use LDAP Active Directory In Laravel.

@bobbybouwmann thank you so much for that documentation link, my code running . however i am not sure is data getting from LDAP server or not. Because on http://127.0.0.1:8000/ only blank. How can sure by login controller as i code in it for response.

thank you.

Activity icon

Replied to Where To Variable And Hostname If I Want To Use LDAP Active Directory In Laravel.

Yes @bobbybouwmann , i am on installation then configuration. However, I read the documentation and somewhere it has been mentioned that we can do configuration in .env file and somewhere mentioned in config file. So here i am confused. so please help in that. what should I followed.?

here is link https://ldaprecord.com/docs/configuration/ in configure it has not defined where we have to do this like in .env or somewhere else.

Thank you.

Activity icon

Started a new Conversation Where To Variable And Hostname If I Want To Use LDAP Active Directory In Laravel.

Hello everyone,

The previous problem has been solved and no I want to how to do next process after

composer require directorytree/ldaprecord in laravel.

What next step for read data only from LDAP active directory

Thank you,

Jul
08
3 weeks ago
Activity icon

Replied to Read Data From LDAP Server In Laravel

Yes, I just did with simple authentication in php to how it works and I want to use another LDAP sever, but don't have any idea , how to do in laravel without authorisation, just want fetch data and read and apply own search condition on blade page. So I asking the same.

Activity icon

Replied to Read Data From LDAP Server In Laravel

thank you @bugsysha , I have visited with php LDAP and even did this by followed the same, however I want to do through Laravel. is it not possible to read data and apply search conditon.

Activity icon

Started a new Conversation Read Data From LDAP Server In Laravel

Hello Everyone,

Is it possible to read data from LDAP server and apply own search condition in laravel?

Thank you,

Jun
29
1 month ago
Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

@m7vm7v @snapey @jlrdw, thank you all, it works , the security check has been updated, so from outside I was not able to upload. Now working.

Thank you so much all.

Jun
27
1 month ago
Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

@snapey , I changed the code and still has same error.

here is link of config/filesystems.php

https://imgur.com/a/Tg5qCgp

Thank you

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

No if I am editing the text then there are no error and sorry , my means file are not moving means , not saving on data base.

Thanks @snapey

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

Yes @snapey , thank you.

In .env file is not available to download.

Yes file are not moving.

so where I have to make changes in controler?

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

@jlrdw here is link of image

or

https://imgur.com/a/YTwGqgq

I tried to change the path , it was outside of App_files then I make inside App_files.

Jun
26
1 month ago
Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

I will ask to server manager to send the screenshot of server file images so it will help me more. And I will update here.

Thank you @jlrdw

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

@jlrdw thank you, it's simple hosting or can say private by organization. and what means of images under public_HTML.

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

Yes, I am trying to save a file outside of my hosting space.

It was working fine, even I have uploaded multiple files before. However, recently some changes has been made by security team on server and from that time I have an error.

And here is my code

$data = [

        'title'=>$request->title,
        'category_id'=>$request->category_id,
        'slug'=>str_slug($request->title),
        'start_time'=>Carbon::parse(strtotime($request->start_time))->format('Y-m-d'),

    ];

    if (request('file')) {
        $file = request('file');
        $file_name = time() . $file->getClientOriginalName();
        $file->move('uploads/Letter', $file_name);
        $data['file'] = 'uploads/Letter/'.$file_name;
    }

Thank you @snapey .

Activity icon

Replied to Unable To Create A Temporary File In Unknown On Line 0

Thank you, @m7vm7v , I went through those link however still have same problem.

Activity icon

Started a new Conversation Unable To Create A Temporary File In Unknown On Line 0

When I try to upload a file from the Admin panel (in laravel).

In the apache log on server, I'm seeing message below.

Warning: Unknown: open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (/var/www/) in Unknown on line 0, referer: https://newworld/admin/letter

Warning: File upload error - unable to create a temporary file in Unknown on line 0, referer: https://newworld/admin/letter

What I do now here?

Jun
24
1 month ago
Activity icon

Replied to Want To Display Multiple Data By Using Same Route On Single Page

@SNAPEY, thank you,

error is Undefined variable: title (View: C:\xampp\htdocs\myproject\resources\views\categories\index.blade.php)

Activity icon

Started a new Conversation Want To Display Multiple Data By Using Same Route On Single Page

I made route for home category

Route :: get ('/ home', [

'uses' => 'FrontendController @ welcome',

'as' => 'welcome'

]);

then for welcome page

Route :: get ('/', [

'uses' => 'FrontendController @ welcome',

'as' => 'welcome'

]);

home page and welcome page has same content but home route comes under category so i made different route for each.

now i want to show different data on page and I want to use same route however getting error

Route::get('/', function () {

$client = new Client();
    
}

return view('welcome');

}

thank you all.

Jun
19
1 month ago
Activity icon

Replied to Want To Fetch API Data From Third Party Link?

thanks @frankielee , i used there is showing nothing. it's blank value. if i am using on welcome.blade

return view('welcome',['data',$body]);

@if(session('data')) {{session('data')}} @endif

Activity icon

Replied to Want To Fetch API Data From Third Party Link?

@nexxai , i am with Guzzle and i am using laravel 5.8, so shall i use

{ "require": { "guzzlehttp/guzzle": "~5.8" } }

then

in web.route

use GuzzleHttp\Client;

Route::get('/json-api', function() { $client = new Client();

$response = $client->request('GET', 'http://apiweqrher.com/repository/weather/latest/latest.csv');
$statusCode = $response->getStatusCode();
$body = $response->getBody()->getContents();

return $body;

});

and when trying to show on welcome.blade it's getting error , like Undefined variable.

what i do next

Jun
17
1 month ago
Activity icon

Replied to Want To Fetch API Data From Third Party Link?

Thank you @tray2 , that is nice laravel content. Sure I will go through it.

Activity icon

Replied to Want To Fetch API Data From Third Party Link?

Thank you, I will try with this again @nexxai .

Activity icon

Replied to Want To Fetch API Data From Third Party Link?

Thank you @nexxai , however I tried with Guzzle package. I want directly code and update on server , as on server , i might be able to update this package, cause I don't think I could update package of Guzzle , if I will do that then might will difficulty.

Is any another way to do that.

Thank you for reply.

Activity icon

Started a new Conversation Want To Fetch API Data From Third Party Link?

Hey all,

I have link http://apiweqrher.com/repository/weather/latest/latest.csv

And I want to fetch data from this above link, anyone please help in this.

Thank you so much

Jun
12
1 month ago
Activity icon

Started a new Conversation Want Get Api Data Of Weather With The Help Of .csv Link

I have a .csv file link of API weather and want to get value and want to show in laravel blade file, please tell how to do that, i trying with simple php its done.

However I want to get value by using laravel.

Thank you so much.

Mar
11
4 months ago
Activity icon

Started a new Conversation Want To Update My Sever Database?

Hi all,

After full development of my project, I live my project on server and as it's responding well, now I am trying to insert new category as also having category temple for same , I design in ID(php Strom laravel 5.8).

So, any one can tell the way to insert new category and also new category template for same through PUTTY.

Thank you all in advance 😊