Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

bipin

Experience

6,200

3 Best Reply Awards

  • Member Since 9 Months Ago
  • 1 Lesson Completed
  • 0 Favorites

8th December, 2017

bipin started a new conversation How To Save Code In Database • 4 days ago

hello guys is there any way to save code in database using ckeditor for eg:- table

  id | code
   1  | {{Auth::user()}}

i m try to display term and condition in modal at head(title of modal) should take authenticate username is it possible what i m trying to achieve

7th December, 2017

bipin left a reply on Database Exception Handler • 6 days ago

@RamjithAp can i handle this kind of error for App/exception/handler.php file

bipin started a new conversation Database Exception Handler • 6 days ago

hello guys i want to handle database error is there any way to put expection in App/exception/handler.php

6th December, 2017

bipin left a reply on Delete File Is Not Working • 1 week ago

This path is working

bipin started a new conversation Delete File Is Not Working • 1 week ago

hello guys,

           $datafiles=REQUEST('resume');

                     
         
                          $del=  public_path('datafiles/APPL').'/'.$datafiles;
                         //dd($del);


                        $new=File::Delete($del);
                      dd($new);

i m using this code to delete file on dd($del); i get result "C:\xampp\htdocs\mwayhire_de\public\datafiles/APPL/A1049_nZ2dd.pdf" i have file exactly in this location but when i dd($new); then i got result false as well as my file not getting delete please help me

5th December, 2017

bipin started a new conversation Is This Correct Or Anyother Best Was To Pass Data To Modal • 1 week ago

here is my code

                  <table class="table">
              <thead>
                      <tr>
                                              <th>Applicant Name </th>
                                              </tr>

                              </thead>
                 <tbody>
                  @foreach($applicant as $app)
                    <tr>
                       <td> <a class="applicantmodal" data-id="{{ $app->applicantid }}" data-toggle="modal" data-target="#applicantmodal">{{ $app->applicantname }}</a></td>

                   

in table view i m show only user name when user click on applicant name modal popup and show other detail so i passed it

   <input type="hidden"  class="emailid"               value="{{$app->emailid}}">
   <input type="hidden"  class="applicantmobileno"  value="{{$app>applicantmobileno}}">
      <input type="hidden"  class="prefferdlocation"   value="{{$app->prefferdlocation}}">

now i m appending this hidden input to modal using javascript

$(document).ready(function() { $('.applicantmodal').on('click', function() { debugger
      document.getElementById("emailid").innerHTML = "";
      document.getElementById("applicantmobileno").innerHTML = "";
      document.getElementById("prefferdlocation").innerHTML = "";
  

    var emailid1           =  $('.emailid').val();
    var applicantmobileno1 =  $('.applicantmobileno').val();
    var prefferdlocation1  =  $('.prefferdlocation').val();


      emailid12.value=emailid1;
     applicantmobileno12.value=applicantmobileno1;
     prefferdlocation12.value=prefferdlocation1;

    });
});      

is this correct way or any other way please help

bipin left a reply on How To Create A Login To My Own API • 1 week ago

@mxramirez011 you CAN OVERRIDE YOU DEFAULT JUST COPY authentication logic which exist in vendor folder into you app/http/auth/login controller modify according to your uses

bipin left a reply on How Do You Group By A Relationship Column • 1 week ago

Or use wherebetween

bipin left a reply on How Do You Group By A Relationship Column • 1 week ago

Use orwhere

        $this->builder = Session::with(['member', 
        'post.favorite', 'cart.purchases'])
        ->where('created_at', '>=', $dates[0])
        ->orwhere('created_at', '<', $dates[1])
        ->groupBy('member_id')
        ->orderBy('created_at', 'desc');

29th November, 2017

bipin started a new conversation How To Refresh Selected Data • 2 weeks ago

Hello guys , I got confused don't know how to achieve these Here is my controller

   Public function hello(){

  $s= DB::table('rec')->get();
   Return view('tablepage',compact('s'));

Here is my view

    <Select>
   <Option>  userid </Option>
  <Option>  username </Option>
     </Select>

   <Table>
   
   <Tbody>
          <Th>name</th>
              <Th>userid</th>
          
       <Th>contact</th>

  @foreach($s as $t)
      <Td>{{$t->name}}<td>
          <Td>{{$t->eid}}<td>
              <Td>{{$t->contact}}<td>
  @endforeach 
          
       <Table>

Here when user click on userid of select option then it send request to controller function hello using Ajax and fetch data return same view with new data and adjust this table data please help me how. I can achieve this . I would be great if any video,link

bipin left a reply on Save As Option To File According To User • 2 weeks ago

@rajitha5 how i can acheive from server end

bipin started a new conversation Save As Option To File According To User • 2 weeks ago

hello guys here i have have a download button when user click on download button then he/she should be able to change file name and save it to anywhere location right now when user click on download button if directly downloading file to download folder which i don't want

bipin left a reply on Not Reading Docx Mimes • 2 weeks ago

thanks

bipin started a new conversation Not Reading Docx Mimes • 2 weeks ago

hello guys i m using mimes to do file validation here is my code

    $validator = Validator::make($input, [ 
             
                'resume' => 'nullable|mimes:docx,doc|max:2000', 
              
            ]);

when user uploading docx file type its throw error ,it read some docx type and some not

17th November, 2017

bipin started a new conversation Doc,docx File Into Pdf Using Shell_exec(libreoffice) • 3 weeks ago

hello guys,i want to convert doc,docx file into pdf using libreofficec .i had found many question related to this but one of these not helpful to me so i post my qwestion over here here is my code

     $resume = Input::file('resume');
        $extenstion = 'pdf';
        $datafiles = 'Resume_'.str_random(10).'.'.$extenstion;
          $resume ->move(public_path('datafiles/APPL'), $datafiles);

how i can mere above code in this for ex i want to convert a file into pdf and then assign a $datafile after that i want to move this file to this location datafiles/APPL or is there any way to assign $datafile directly to below code or eg

  shell_exec('start /wait soffice --headless --convert-to pdf --outdir --savefile name as  $datafiles "./publicapp" "'.$resume.'"'); // is this possible or other correct way

  shell_exec('start /wait soffice --headless --convert-to pdf --outdir "./publicapp" "'.$resume.'"');

6th November, 2017

bipin left a reply on Can't Connect To Database ! ? • 1 month ago

comment line in [pdo_mysql] password section or just reinstall you xampp or wampp it where issue arise

bipin left a reply on Can't Connect To Database ! ? • 1 month ago

nothing wrong with laravel frameworking its because you database if you are using window system go to service find you database and restart it

4th November, 2017

bipin started a new conversation Query Orwhere Creating Problem • 1 month ago

here is my query

       $count = DB::table('processed_applicants')
                 ->whereBetween('accept',[0,2])
                 ->where('expiry','>=',carbon::now())
                 ->whereNull('expiry')
                 ->where('jobpostingid',$id)
                 ->take(9)
                 ->get();

suppose i have id (example)=1,2,3 of table jobpost and i also want to keep record of rejected applicants form in processed_applicants table belongs to particular id . so i add a column name (expiry) intially expiry contain null value but if admin reject this id=1 then i m adding a carbon::now->addHours(6) in column expiry now i m try to display this value if it contain null then accept button is shown else reselect button show be visible my above code is working little properly result is show to id 2 also which i don't want

eg

1. J100

        1. a102 ---------> null value entry in rejected column
        2. a103--------> it have expiry date time entry in rejected column

2 . J105

        1. a101   ---------> null value entry in rejected column
        2. a100 ---------> null value entry in rejected column

now J100 can see a102, a103 but don't see a101,100 above query working perfectly fine if i remove or where

31st October, 2017

bipin left a reply on Why Redirecting Me To Other Site • 1 month ago

@Cronix this happen when I does it with propertyhawker.com i.e default App_url is property hawker.com

bipin left a reply on Why Redirecting Me To Other Site • 1 month ago

@kreierson And what about automatically logout my login user

bipin started a new conversation Why Redirecting Me To Other Site • 1 month ago

helllo guys i have 2 copy of same project but location is different on same server

  1. propertyhawker.com and 2. http://52.66.77.198/test/test/public/ when user click on this second website serach button it redirect to propertyhawker.com i havent hardcode i have here is redirection code of second website

     return redirect()->route('search');
    

moreover when i click on search it logout authenticated user may i know the reason why this happen is it due to server cache? or framework or it have any bug? please help me

27th October, 2017

bipin started a new conversation Why This Libreoffice Syntax Is Not Working • 1 month ago

why this libreoffice 5 syntax is not working i.e nothing happen if anyone know please help

 shell_exec('start /wait soffice --headless --convert-to pdf:writer_pdf_Export --outdir 
      "C:\xampp\htdocs\mwayhire_de\public\resumefile\R1.doc"'); 

19th October, 2017

bipin left a reply on HTML Links In Laravel • 1 month ago

That mean gyoza.php has post method change it to get method

bipin left a reply on [Doctrine\DBAL\Driver\PDOException] Migration Error : SQLSTATE[42S02]: • 1 month ago

This is because you database has table migration in which it has all table info so delete required one then migrate again it will work

bipin left a reply on HTML Links In Laravel • 1 month ago

Give try to this

      <li><a href="{{url('/asia/japan'}}" target = container> Gyoza </a></li>

Separate view and logic from Gyoza.php for view save it gyoza.blade.php and create route folder ( web.php file name) write it

   Route::get('asia/japan','[email protected]');

Create controller in app ->http any controller name

      createcontroller extend controller {
               anyname  function (){
   // Your logic
    return view('gyoza');

 } 

}

bipin started a new conversation Page Responded Http500 Error • 1 month ago

Hello guys I had made a social login which work perfectly fine but from 2 days it's throw error like page is not working server in first attempt i.e in first try it throw error describe below but in second try (social login) user get successfully login

           This page isn’t working
        propertyhawker.com is currently unable to handle this     
          request .
   HTTP ERROR 500 

This this creating issue in appservice provider

        'redirect' => url('/auth/google/callback'); 

what is issue

28th September, 2017

bipin left a reply on How I Can Pass Variable On Javascript Html Object • 2 months ago

i solve my issue by this here is solution

          var url= "{{ url('browserview') }}"+"/"+id;
 
    var $iframe=$('<object data="'+url+'" width="100%" height="600px"></object>'); 

  $("#newname").append( $iframe);

bipin left a reply on How I Can Pass Variable On Javascript Html Object • 2 months ago

@topvillas how i can append id to route please help

bipin started a new conversation How I Can Pass Variable On Javascript Html Object • 2 months ago

hello guys i have one javascript here is my code

                $('.view').on('click', function() {
   
   
       var id = $(this).attr("data-id");
 
     
    var $iframe=$('<object data="{{ route('browserview', +id) }}" width="100%" height="600px"></object>'); 

  $("#newname").append( $iframe);

  
    }); 

how i can value value of id into something like this {{ route('browserview', +id) }} +id not working

26th September, 2017

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi thankx for your help i had solve my problem but if you tell me how i can add company table in auth it would be greate it just for knowledge purpose like edit in config file

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi thankx for your help i had solve my problem but if you tell me how i can add company table in auth it would be greate it just for knowledge purpose

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi this one DD(Auth::user()->company);

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi show error because of default id

    Invalid text representation: 7 ERROR: invalid input syntax for integer: "[email protected]" (SQL: select * from "company" where "company"."id" = [email protected] limit 1)

instead of company.id i need userid

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi good to add table in auth like auth::user and auth::company how i can achieve this

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

user table

   id | name |email |password  |userid

company table

   id | com_name |com_email | com_password  |userid |admin_verify

bipin left a reply on How To Show Particular Menu To Auth User • 2 months ago

@tisuchi user table does not have admin_verify column it in different table name as company

bipin started a new conversation How To Show Particular Menu To Auth User • 2 months ago

hello guys, i m try to show particular sidemenu menu to auth user(after user login) for eg sidemenu:-

     1. register
     2.create 
     3.edit
     4.report

here when user enter for first time it need admin verification (i.e i had admin_verify column in table company) if admin_verify column is false then user only able to see 1.register othervise he/she can see all menu and i don't know how to acheive that need help

20th September, 2017

bipin started a new conversation Index File Is Not Reading • 2 months ago

hello guys i m new baby to laravel so please ignore if its silly question recently laravel 5.4 upload to godaddy shared host server i does lot of google and found few thing

structure of cpane i have .plesk htdocs www.min.com www.pro.com www.propertyhawker.com etc

  1. i copy my whole project directly to propertyhawker.com (i.e laravel inside folder eg app public resource etc)

  2. i copy index.php file from public folder directly into propertyhawker.com 3.when i try to access index.php or just typing propertyhawker.com it throw error like Internal Server Error(The server encountered an internal error or misconfiguration and was unable to complete your request.) but when i just echo

it work properly can i know reason why this happen if anyone know how to upload whole server or hole process please let me know

18th September, 2017

bipin started a new conversation Failed To Open Stream: Permission Denied • 2 months ago

hello guys first time i had uploaded my project on godaddy window shared host and i set all permission to 777 why still getting issue

        UnexpectedValueException

The stream or file "G:\PleskVhosts\minsyst.com\propertyhawker\storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in StreamHandler.php (line 107) at StreamHandler->write(array('message' => 'exception 'UnexpectedValueException' with message 'The stream or file "G:\PleskVhosts\minsyst.com\propertyhawker\storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Handler\StreamHandler.php:107Stack trace:#0 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Handler\AbstractProcessingHandler.php(37): Monolog\Handler\StreamHandler->write(Array)#1 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array)#2 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\monolog\monolog\src\Monolog\Logger.php(616): Monolog\Logger->addRecord(400, Object(UnexpectedValueException), Array)#3 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Log\Writer.php(203): Monolog\Logger->error(Object(UnexpectedValueException), Array)#4 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Log\Writer.php(114): Illuminate\Log\Writer->writeLog('error', Object(UnexpectedValueException), Array)#5 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Foundation\Exceptions\Handler.php(71): Illuminate\Log\Writer->error(Object(UnexpectedValueException))#6 G:\PleskVhosts\minsyst.com\propertyhawker\app\Exceptions\Handler.php(35): Illuminate\Foundation\Exceptions\Handler->report(Object(UnexpectedValueException))#7 G:\PleskVhosts\minsyst.com\propertyhawker\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(314): App\Exceptions\Handler->report(Object(UnexpectedValueException))#8 i had already give 777 permission to storage using firezilla and moreover my user id have all wirte i.e 777

6th September, 2017

bipin left a reply on Too Many Arguments (Php Artisan Make:migration Create) • 3 months ago

try to create subscriber table with other name

5th September, 2017

bipin left a reply on Retrieve Deep Nested Relation Count • 3 months ago

@mvww11 where you are does count blade or controller use foreach to access nested value

bipin started a new conversation How To Pass Dynamic Selector Value To Jquery • 3 months ago

hello guys here, i m trying to get dynamic input id value into jquery here is my view

                       <select class="selectpicker form-control " id="applicantstatus[{{$s->id}}]" name="applicantstatus[{{$s->id}}]" data-style="btn-info btn btn-xs" data-posttd="{{$s->id}}" data-width="auto" >  <option >Select</option>
                                  <option   value="Processing" >Processing</option>     
                                  <option   value="Hired">Hired</option>
                                  <option   value="Reject">Rejected</option>
                                  <option   value="RollBack">RollBack</option>
                               </select>
                               
                                </td>
                                <td class="text-right footable-visible footable-last-column">
                                    
                                    <div>
                                            
                                         
                                        <a class="btn-success btn btn-xs setvalue" data-id="{{$s->id}}">Save</a>

                                    </div>
                                </td>

here is my script

                           <script type="text/javascript">

$(document).ready(function() {

   $('.setvalue').on('click', function() {
    debugger
       var id = $(this).attr("data-id");
       var new1 = id;
        var inp =  $('#applicantstatus[new1]').val();
    
  
        });

});

31st August, 2017

bipin left a reply on How To Display Data For Limited Time • 3 months ago

@Cronix thanks for your soultion i will try and let you know

bipin started a new conversation How To Display Data For Limited Time • 3 months ago

hello guys i have table name as applicant it have 4 column name as name,updated_at,status expire

         name  | Update_at  | status  |expire
         kaust  | 2017/08/13 | 1           |null
         jhone  | 2017/08/13 | 1           |null
         wills    | 2017/08/13 | 1           |null
         done   | 2017/08/13 | 0          |2017/08/14

now here i want to display all data but if data have expire in cloumn then it should not display that row and know how to do please share with me

30th August, 2017

bipin left a reply on How To Get Table And Text Value Of Phpword • 3 months ago

@bashy element->getText working ,is there any other way

29th August, 2017

bipin left a reply on How To Get Table And Text Value Of Phpword • 3 months ago

yes, if i use this if condition if(!$element->getText()==null) then it work perfectly

bipin left a reply on How To Get Table And Text Value Of Phpword • 3 months ago

@bashy it have array value

           #Text: array:1 [▶]
            #Table: array:1 [▶]
            #TextRun:array:1 [▶]
           

and i want to access Table value

        if($element instanceof PhpOffice\PhpWord\Element\Table) 

since i have Table in element array so why above if condition not working it getting out if condition(else)

bipin left a reply on How To Get Table And Text Value Of Phpword • 3 months ago

   foreach($phpWord->getSections() as $section) {
                        foreach($section->getElements() as $element) {
                             if($element instanceof 
     PhpOffice\PhpWord\Element\Text) {
                                dd('h');
                                echo($element->getText() . "<br><br>");
                                                             
                           }
     else{ 
 it go here instead of if condition
   }
 }

bipin left a reply on How To Get Table And Text Value Of Phpword • 3 months ago

it not going in if condition

bipin started a new conversation How To Get Table And Text Value Of Phpword • 3 months ago

here i m try to fetch table as well as text value which i m getting from doc file(getting from database) please help me how i can fetch table value here is my code

                $phpWord = \PhpOffice\PhpWord\IOFactory::load($fullPath);

                           $sections = $phpWord->getSections();

                     //   $phpWord = IOFactory::createReader('Word2007')->load($fullPath);

                       //      dd($phpWord);
                                    
          $sections = $phpWord->getSections();    

foreach ($sections[0]->getElements() as $el) {

if ($el instanceof PhpOffice\PhpWord\Element\Table)
{
    dd('h');
echo 'new table <br><br>';
foreach ($el->getRows() as $row)
{
    foreach ($row->getCells() as $cell)
    {
        echo $cell->getElements()[0]->getText().'***';
    }
    echo '<br>';
}}
if ($cell->getElements()[0] instanceof PhpOffice\PhpWord\Element\Text)

{ dd('h1'); echo $cell->getElements()[0]->getText().'***'; } }

Edit Your Profile
Update

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