bro mujhe database me se condition chcek karni hai to kaise kru $schedule->command('app:test')->when(function () { // if (Auth::user()) { if (Auth::user()->role == 'user') { return true; } // } return false; }); is code me work nhi ho pa raha
@ProgrammingExperience Жыл бұрын
Database condition ke liye to apko where ka used karna hoga query ke saath.
@skgamer2.027 Жыл бұрын
@@ProgrammingExperience okay try krta hun
@ProgrammingExperience Жыл бұрын
@@skgamer2.027 👍
@sandeepkumarsingh1340Ай бұрын
Bhai local server pe run ho rha but when my code live how run this schedule can first time run on server by manually ya automatically run