Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Je traivaille sur un projeten laravel dans la quel j'utilise theme.less
tout les vus marchaient bien mais y a une vue qui me present cet erreur la seule differnce entre cette vu et les autre que elle dans sa route il a parametre id qu'il doit prendre en compte

Google Translate:
I am working on a laravel project in which I use theme.less
all the views worked well but there is a view that presents this error to me the only difference between this view and the other than it in its route it has id parameter that it must take into account


What I have tried:

//vu.blade.php
PHP
            <tbody>
                @foreach($nouveaux as $nouveau)
                          <tr>
                            <td><a href="{{ URL::action('TraitementController@indexEntretient', $nouveau->id) }}">{{ $nouveau->nom }}</a></td>
                            <td>{{ $nouveau->sexe}}</td>
                            <td>{{ $nouveau->date_naissance}}</td>
                            <td>{{ $nouveau->lieu}}</td>
                            <td>{{ $nouveau->telephone}}</td>
                         </tr>
                @endforeach
                    </tr>
            </tbody>                </table>
    </div>
</div>

//web.php
PHP
Route::get('/Entretients/{id}','TraitementController@indexEntretient')->name('home');

//TraitementControlle.php
public function indexEntretient($id)
{
    $nouveau = DB::select('select * from nouveaus  where id = ?', [$id]);
    return view('Entretient', compact('nouveau'));
}
Posted
Updated 10-Aug-21 3:47am
v2
Comments
Richard Deeming 10-Aug-21 9:48am    
This is an English-language site. Please post questions in English only.
Il s'agit d'un site en anglais. Veuillez poster des questions en anglais seulement.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900