This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Database\Eloquent\Builder; | |
| use Illuminate\Support\Arr; | |
| use Illuminate\Support\ServiceProvider; | |
| class AppServiceProvider extends ServiceProvider | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Controllers; | |
| use Illuminate\Http\Request; | |
| use Stripe\Stripe; | |
| class PaymentController extends Controller { | |
| public function index() { | |
| return view('test-payment'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {{-- Before/After Blade Component --}} | |
| @props([ | |
| 'before_image' => null, | |
| 'after_image' => null | |
| ]) | |
| <div | |
| x-data="beforeAfterSlider('{{ $before_image }}', '{{ $after_image }}')" | |
| x-ref="sliderContainer" | |
| class="relative w-full h-full aspect-video overflow-hidden select-none" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public function myfunction() | |
| { | |
| // ...other code | |
| $route = route('dashboard'); | |
| $this->dispatch('notify', type: 'success', title: 'You did it!'); // minimum | |
| $this->dispatch('notify', type: 'success', title: 'You did it!', content: 'This is your reward'); // additional text | |
| $this->dispatch('notify', type: 'success', title: 'You did it!', content: 'This is your reward', route: $route, target: '_blank'); // include a route | |
| // ...remainder of code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Livewire; | |
| use Livewire\Component; | |
| class Dashboard extends Component | |
| { | |
| /** | |
| * The selected period |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Services; | |
| use GuzzleHttp\Client; | |
| class ChatGPTService | |
| { | |
| private $apiKey; | |
| private $baseUrl; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Http\Livewire\Dashboards; | |
| use Livewire\Component; | |
| class AdminDashboard extends Component | |
| { | |
| public $period = 'Year'; // default: Year. options: Today, Week, Month, Quarter, Year, 'All Time' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Include the UserOnline::class in the $middlewareGroups array. | |
| /** | |
| * The application's route middleware groups. | |
| * | |
| * @var array<string, array<int, class-string|string>> | |
| */ | |
| protected $middlewareGroups = [ | |
| 'web' => [ | |
| \App\Http\Middleware\EncryptCookies::class, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace App\Models; | |
| use Illuminate\Database\Eloquent\Factories\HasFactory; | |
| use Illuminate\Database\Eloquent\Model; | |
| class Bookmark extends Model | |
| { | |
| use HasFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Compiled source # | |
| ################### | |
| *.com | |
| *.class | |
| *.dll | |
| *.exe | |
| *.o | |
| *.so | |
| # Packages # |
NewerOlder